Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

You need to set process.NODE_ENV in every script #75

Open
geekodour opened this issue Jul 28, 2017 · 1 comment
Open

You need to set process.NODE_ENV in every script #75

geekodour opened this issue Jul 28, 2017 · 1 comment

Comments

@geekodour
Copy link
Owner

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
Copy link
Owner Author

this might be the move

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant