This is a simple project that shows how webpack HMR works.
It does not contain any framework like react, vue.js, ... Only pure js, css and a html file.
- node >= 10.13.0
- npm >= 5.37.0
npm i
Development port PORT_DEV_SERVER
is by default set to 3000
and can be changed in webpack.dev.js
.
npm run dev
Open localhost:3000
in browser and check console.
Every change in src
files is instantly hot loaded.