An open API service indexing awesome lists of open source software.

https://github.com/pavanpodila/webpack-talk

Example code for the talk on Webpack
https://github.com/pavanpodila/webpack-talk

devnexus talk webpack

Last synced: about 1 year ago
JSON representation

Example code for the talk on Webpack

Awesome Lists containing this project

README

          

# webpack-talk
Example code for the talk on Webpack.

[Slides](webpack-slides.pdf)

## Topics Covered

- [x] A simple project with `webpack.config.js`
- [x] Stamping builds with a `hash` in filename
- [x] JS/JSX transpilation via `babel`
- [x] Adding `index.html` via `HtmlWebpackPlugin`
- [x] Add CSS support
- [x] Loading images with `file-loader`
- [x] Aliasing module names for shorter imports
- [x] Code splitting with `vendor` entry + `CommonsChunkPlugin`
- [x] Using `DefinePlugin` to introduce env vars
- [x] Using `ProvidePlugin` for supplying modules for free vars
- [x] Lazy loading components
- [x] `historyApiFallback` with `react-router-dom`
- [x] React HMR with `react-hot-loader`
- [x] Dev and Prod configurations using `webpack-merge`
- [x] Adding Unit testing with Karma/Mocha/Chai/Sinon