Simple introduction to webpack 4 features.
There are multiple branches in this repository that will walk you through these chapters:
git checkout 1-production-and-development- How to setup a basic webpack project
- How to run
webpackand generate development and production bundles
git checkout 2-html-loader- How to import
.htmlfiles and use them in webpack - How to run your JS bundles inside
.htmlfiles
git checkout 3-dev-server- How to run webpack in development mode
- How to enable hot-reloading while developing
git checkout 4-react- How to configure webpack to transpile JSX
- How to run a basic React app
git checkout 5-dynamic-import- How to resolve webpack imports asynchronously
- How to set up basic chunking
git checkout 6-named-chunks-and-prefetch- How to setup named chunks and optimize load time using
<link rel="prefetch"/>
git checkout 7-caching-and-chunk-splitting- How to optimize client-side caching and enable vendor chunk splitting