You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using webpack-hot-middleware in multiple entries, I give each entry a path in the plugin config and I can see in the browser console [HMR] connected. When I update my file I see the webpack rebuild but never reload at all.
module.exports=function(dir){/* some other config here */webEntry.push(`webpack-hot-middleware/client?reload=true&path=/${dir}/__webpack_hmr`);constwebConfig={entry: webEntry,output: {path: helper.rootNode('./dist',dir),filename: '[name].web.js',publicPath: `/${dir}`},/* some other config here */
return webConfig;}
Also I add new webpack.HotModuleReplacementPlugin() in my plugin list.
It seems everything works well except that I can never see a reload after my changes. I'm using this in my vue project. Is it anything wrong with my config ? Thanks for your help in advance.
The text was updated successfully, but these errors were encountered:
In general, it's much better to provide a working reproduction instead of copying and pastings bits and pieces - and kinda bad form to file an issue for tech support instead of asking StackOverflow. ;)
Here I've upload the project. The webpack config is configs/webpack.dev.conf.js, and lauched in scripts/dev.js. Hope someone can help me figure out the point here. Thank you very much!
I'm using
webpack-hot-middleware
in multiple entries, I give each entry a path in the plugin config and I can see in the browser console[HMR] connected
. When I update my file I see the webpack rebuild but never reload at all.Some of my config looks like this:
And in my
webpack.dev.conf.js
:Also I add
new webpack.HotModuleReplacementPlugin()
in my plugin list.It seems everything works well except that I can never see a reload after my changes. I'm using this in my vue project. Is it anything wrong with my config ? Thanks for your help in advance.
The text was updated successfully, but these errors were encountered: