I just upgraded to Webpack 5, and because webpack-dev-server
wasn't working anymore, I changed my npm start
command from webpack-dev-server
to webpack serve
.
This is my npm start
command
webpack serve --config ./build-config/webpack.config.js
I can see the console updating, and printing output, but the page in the browser will not update, I have to refresh the browser page.
EXTRA
Adding --mode development --env development --hot
to my npm start
did not fix the problem
webpack version:
"webpack": "^5.10.0",
"webpack-cli": "^4.2.0"
Note: I am not talking about webpack-serve