A
A
Alexey Bugaev2021-03-27 10:30:04
webpack
Alexey Bugaev, 2021-03-27 10:30:04

Why doesn't HMR work for the second entry point?

I'm building for a multi-pager on webpack 5.28.0 I created a common entry point so that the common styles and scripts needed on each page are connected to each page as a separate common.css and common.js file, respectively.
605edb7f1299c917120410.png
set dev mode config
605edbc27a9d6016935876.png
to every page i add common files
605edd4716d7f578976029.png
everything works fine except HMR(hot reload) in common.
605ede0bd22cc102249655.png
in index.js styles are updated without reloading the page, scripts with reloading.
in common.js, the styles and scripts are updated in webpack but the changes are not passed to the browser.
Help good people who knows what.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question