Answer the question
In order to leave comments, you need to log in
Why is hot reload not working?
I seem to be doing everything right, but when changing files, the page does not reload. What could be the problem?
devServer: {
contentBase: path.resolve(__dirname, './dist'),
compress: true,
port: 5000,
hot: true,
index: 'frontpage.html',
open: true,
overlay: {
warnings: true,
errors: true
},
inline: true
}
Answer the question
In order to leave comments, you need to log in
In output specify the following ->
output: {
publicPath: '/dist/',
// ...
},
historyApiFallback
something like this ->devServer: {
historyApiFallback: true,
compress: true,
port: 5000,
index: 'frontpage.html',
open: true,
inline: true,
overlay: true
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question