With the lazy
option enabled, webpack-dev-server
does not watch the
bundle files, nor does it automatically recompile them or refresh the browser.
Instead, it only compiles after you manually refresh the page.
npm run webpack-dev-server -- --open --lazy --no-inline
- The script should open
http://localhost:8080/
in your default browser. - You should see the text on the page itself change to read
Success!
. - Change something in
app.js
and save. - You should not see any changes in the console/terminal output.
- You should not see any changes in the browser.
- Refresh the page.
- You should see compilation in the console/terminal and changes in the browser.