gitpushblog icon indicating copy to clipboard operation
gitpushblog copied to clipboard

You need to set process.NODE_ENV in every script

Open geekodour opened this issue 8 years ago • 1 comments
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.

geekodour avatar Jul 28 '17 14:07 geekodour

this might be the move

  1     new webpack.DefinePlugin({
60        "process.env.NODE_ENV": JSON.stringify(env.NODE_ENV)                                                                                                                                    1     }),

geekodour avatar Jul 30 '17 06:07 geekodour