S
S
Sergey Kondrashevsky2020-08-07 15:16:12
JavaScript
Sergey Kondrashevsky, 2020-08-07 15:16:12

Why doesn't Webpack reload the web page?

Good afternoon!
I have a problem webpack-dev-server compiles everything but the web page does not reload.
Although everything worked before and I did not rewrite anything ...
Here is a link to the project with my assembly
Please help me figure it out

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
fallus, 2020-08-07
@fallus

You can try replacing devServer with this:

devServer: {
  port: 8080,
  hot: isDev,
  hotOnly: false,
  liveReload: isDev
}

liveReaload: true works on all files that change. Reloads the entire page.
hot: true makes it possible for vue hot reload / react hot reaload to update only changed parts of the code or markup.
hotOnly: true cancels liveReload.

S
Sergey Kondrashevsky, 2020-08-07
@Seryoga96

I solved the problem by adding to the configwatchContentBase: truedevServer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question