-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
How I disable the HMR temporarily? #4368
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
Comments
I don't think such workflow makes sense and I'm strongly against this approach. Nonetheless, hot reload can be disabled with the following config: module.exports = {
devServer: {
hot: false,
liveReload: false
}
} (The console message still presents but there won't be actual module replacements happening) |
@sodatea, thanks for the help! |
invalid configuration...always has the ws://localhost:11117/sockjs-node/009/umr1d0xa/websocket |
So,
disables hot reload for Another solution:
does not work in my case because my project uses 'raw-loader' instead of Another solution:
did not work. One more solution:
One more solution:
this finally works, yay - no more /info requests... but there's a problem - what if we need NODE_ENV like |
For those looking to try this solution temporarily (which we needed to do to test our CSP), you can drop this into your
|
Guys, someone can tell me what configuration files you talking about? I tried to put those config snippets to my webpack config, but nothing happens. But since nobody told me which configuration file I should edit, I honestly can't test these on my instance. |
I found that only this worked for me to completely disable the live-reload module.exports = {
devServer: {
+ webSocketServer: false
}
} (my issue was that running over HTTPS in a container would break the app when it tried to access insecure |
After searching far and wide, this is was the solve for me. Changes are still detected upon saving which recompiles our app but the annoying "HMR" messages no longer spam the console. Thanks @tpluscode! |
What problem does this feature solve?
The problem I have is that I don't know how to disable Hot Module Replacement ( aka HMR) in vue-cli service. I tried to follow this thread but I didn't gone too far: https://stackoverflow.com/questions/52766802/how-do-i-disable-hot-module-replacement-with-vue-cli-service-serve.
PS.: The purpose of this is that I want to continue the development of my application and the designer that is in another computer, seeing my machine in my ip will style the application. When I save the application, the HMR cleans the css of the inspector and the designer lost the CSS he did in it.
Hope for a better comprehension. Suggestions are welcome.
What does the proposed API look like?
I guess other people might suffer from same issue.
The text was updated successfully, but these errors were encountered: