simple steps for shipping a frontend with webpack - show slides
npm install webpack -g
npm install webpack-dev-server -g
simple webpack bundle example with dependencies
webpack entry.js bundle.js
adding css to modules via .js require('style!css!./entry.css')
npm i css-loader style-loader -D
preprocess es6 with loaders. config moved to webpack.config.js
npm i babel-loader babel-core babel-preset-es2015 -D
webpack --config webpack.config.js
extract css files && commons code
npm install extract-text-webpack-plugin -D
start a development server with hot module reload at localhost:8080
webpack-dev-server --config webpack.config.js --hot --inline -d
build uglified for production
NODE_ENV=production webpack --config webpack.config.js -p