I have the following node script to start a react app. It sets a variamle in the .env. Is there a way to set this script in the package.json, so it can take a parameter from the terminal?
script in the terminal that sets a color in the .env:
set COLOR=blue&& node scripts/start.js
package.json, how to hand over the color parameter?
"scripts": {
"startWithColor": "set COLOR=$COLOR&& node scripts/start.js",