Example code for the talk on Webpack.
- A simple project with
webpack.config.js - Stamping builds with a
hashin filename - JS/JSX transpilation via
babel - Adding
index.htmlviaHtmlWebpackPlugin - Add CSS support
- Loading images with
file-loader - Aliasing module names for shorter imports
- Code splitting with
vendorentry +CommonsChunkPlugin - Using
DefinePluginto introduce env vars - Using
ProvidePluginfor supplying modules for free vars - Lazy loading components
-
historyApiFallbackwithreact-router-dom - React HMR with
react-hot-loader - Dev and Prod configurations using
webpack-merge - Adding Unit testing with Karma/Mocha/Chai/Sinon