gitpushblog
gitpushblog copied to clipboard
You need to set process.NODE_ENV in every script
trafficstars
If the script imports init.js and the scripts that needs to terminate after execution, you need to have process.env.NODE_ENV set to production otherwise the whole script runs in watch mode.
this might be the move
1 new webpack.DefinePlugin({
60 "process.env.NODE_ENV": JSON.stringify(env.NODE_ENV) 1 }),