- mode Explain Webpack 4 new
mode
option - env-argv-parameters Export configuration as function and access
env
andargv
parameters which can be used to create different configurations based on environment - tree-shaking Prevent code duplication, remove unused code
- babel Transform ES2015 with Babel
- babel-polyfill Apply polyfills with Babel
- html-template Create a custom
HtmlWebpackPlugin
template - load-css Use
css-loader
andstyle-loader
to parse css files and place them into html page - load-images Use
file-loader
andurl-loader
to import images andraw-loader
to import svg - caching Add hash to filenames for browser caching
- separate-runtime Extract webpack runtime in a separate file
- source-maps-inline Inline css and js source maps
- source-maps-external Extract css and js source maps files in a separate file
- separate-css-1 Extract css into a separate file using
MiniCssExtractPlugin
- separate-css-2 Use of MiniCssExtractPlugin
options.publicPath
to correctly resolve url paths in css - load-sass Use
sass-loader
to parse scss files - postcss How to use
postcss-loader
- sass-postcss Use
sass-loader
andpostcss-loader
together - remove-unused-css Remove unused css with
PurifyCSSPlugin
- minify Minify css, javascript, html
- chunks-types Describe what a chunk is and the different types of chunks
- dynamic-import Code splitting, use
import()
to load chunks on demand - lazy-load-image Dynamic import an image with
import()
- require-context Require all files in a directory or matching a pattern
- lazy-load-multiple-images Use
require.context
andimport()
to automatically lazy-load multiple images - lazy-load-images-folders Dynamically import folders with images depending on the button you click
- publicpath What is
output.publicPath
and how to use it - bundle-splitting-1 The basic of bundle splitting with
SplitChunksPlugin
default options - bundle-splitting-2 Another bundle splitting example
- bundle-splitting-3
splitChunks.chunks: 'all'
- bundle-splitting-4 extract css with splitChunksPlugin
- bundle-splitting-5
cacheGroups
configuration - composing-configs Create different configurations, separate production and development targets, merge configurations
- static-site-generator A basic static site generator with router capabilities using only
HtmlWebpackPlugin
forked from pldg/learn-webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
druvisc/learn-webpack
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A collection of simple examples to explain how to configure webpack
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 73.1%
- HTML 20.8%
- CSS 6.1%