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

Disable HMR in production #14

Closed
skelable opened this issue Oct 6, 2018 · 2 comments
Closed

Disable HMR in production #14

skelable opened this issue Oct 6, 2018 · 2 comments
Labels

Comments

@skelable
Copy link

skelable commented Oct 6, 2018

TY, the boilerplate is great.

OS: windows, Linux
Node version: v6.11.3
NPM version: 3.10.10
Webpack version: 4.20.2
webpack-hot-client: 4.1.1

Issue: When running production the HMR is enabled - please advise how to disable for production.
I didn't see this option (full removal in the https://github.com/gaearon/react-hot-loader project only cold which isn't cleaning the package from the content)
Requested: In production hot module should be removed (in my case).

@HashemKhalifa
Copy link
Owner

@skelable by default react hot module will only work in development mode, kindly pull the latest changes as we added webpack HMR only in development.

Cheers!

@skelable
Copy link
Author

skelable commented Oct 14, 2018 via email

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

No branches or pull requests

2 participants