webpack - webpack3, Can I use watch mode and hot module replacement togerther? -


i use webpack -d -w develop.

but want use hmr,so can develop without using command + r reload whole page.

i add hmr plugin new webpack.hotmodulereplacementplugin()

when modify source files, webpack generate hot-update.js (1.3ddecfce7816ba3d41d6.hot-update.js) in dist directory.

but there nothing change in page, hmr not working expected.

i still need reload whole page.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -