Skip to content

Conversation

weiserhei
Copy link
Contributor

@weiserhei weiserhei commented May 8, 2018

Running a production build on CentOS or Windows10 I encountered the following problem:
the webpack.DefinePlugin() replaces __ENV__ before the env = "prod"; is executed. Resulting in a production build, but the global variable is still set to "dev".

I was pulling my hair out before and while encountering this :rage1: Can someone confirm this?

The current version is working fine on CentOS, but on Windows10 I encountered this problem:
the `webpack.DefinePlugin` replaces `__ENV__` before the `env = "prod";` is executed. Resulting in a production build, but the global var is still set to "dev".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant