Webpack - How to use code splitting

In this episode, I show how to use CommonJS and require and require.ensure with webpack to do code splitting.

Resources:
* https://github.com/davidwparker/programmingtil-webpack/tree/master/0008-code-splitting
* http://webpack.github.io/docs/code-splitting.html
* https://github.com/webpack/webpack/tree/master/examples/code-splitting

© programmingtil.com