webpack-config-handbook
Executable Webpack demos, still UPDATING!
Table of Contents generated with DocToc
How to run the demo
- clone repo & enter the demo directory
- run a demo by
yarn open <path>
Example:
$ yarn open 05-code-splitting/async-chunk
Content
01-get-started
02-entry-and-output
- entry-string
- entry-array
- entry-object
- entry-function
- output-filename
- output-path(TODO)
- output-publicPath(TODO)
- output-chunkFilename(TODO)
03-loaders
- babel-loader
- css-loader
- ts-loader
- eslint-loader
- html-loader
- handlebars-loader
- vue-loader
- file-loader
- url-loader
- svg-inline-loader(TODO)
- how-to-write-a-loader
04-handle-styles
- css-modules
- extract-css
- mini-css-extract-plugin
- extract-multiple-css
- less
- scss
- postcss-loader
- postcss-autoprefixer
- postcss-cssnext
- postcss-stylelint
05-code-splitting
06-config-in-prod
07-bundle-optimization
08-best-practice-for-dev
09-others
- externals
- ...
10-js-bundlers
Not found what you need?
This repo is still updating, any issue & contribution is welcome💡