webpack.config.js
module.exports = {
// ...
devServer: {
client: {
progress: true,
},
},
};
Usage via CLI:
npx webpack serve --open --client-progress
To disable:
npx webpack serve --open --no-client-progress
- The script should open
http://localhost:8080/
in your default browser. - You should see the text on the page itself change to read
Success!
. - In
app.js
change the text and save. - You should see the compilation progress in the browser console.