Closed juristr closed 8 years ago
@kenwheeler -- When you switch to builder
archetype and have builder available, you can do a cross-os env variable with:
{
"build-base": "webpack --config webpack.config.production.js",
"build": "builder envs build-base '[{\"NODE_ENV\":\"production\"}]'",
"start-base": "node server.js",
"start": "builder envs start-base '[{\"NODE_ENV\":\"development\"}]'",
}
or some derivation / alternate version of that.
@ryan-roemer thats awesome, I'm going to pull this in until I can get an archetype put together
Hi,
I just wanted to launch it on my Win7 PC and it won't work due to how the
NODE_ENV
variable is set inpackage.json
. Just added a note for that on the README so that others can quickly fix it.