Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move plugins declaration below production #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

move plugins declaration below production #6

wants to merge 1 commit into from

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.

None yet

1 participant