K.I.S.S.ing Webpack
summary
Starts from npm init, installs webpack and webpack-cli plus loaders and plugins (babel-loader, css/style-loader, html-webpack-plugin, mini-css-extract-plugin, clean-webpack-plugin) and wires an entry src/index.js to an absolute output path, adding a build script that runs webpack --config to emit dist/app.js and an HTML file. Shows importing moment and requiring local modules, explains CSS-in-JS via style-loader vs. extracted files, and demonstrates npm run watch which rebuilds continuously but only replaces the bundle when builds succeed.
AI-written summary · about
