I don\'t want type the extra arguments NODE_ENV=\'production\' gulp every time I run gulp to set an environment variable.
I would rather set the environ
You can also define it as a script in your package.json
{
"name": "myapp",
"scripts": {
"gulp": "NODE_ENV='development' gulp",
"gulp-build": "NODE_ENV='production' gulp"
},
...
}
And run it with npm run gulp-build. This has a few benefits