This repo contains a variety of examples that demonstrate different Webpack configurations and an evaluation of their outputs.
-
Webpack's depend-on feature
-
Splitting bundles with DLL to improve build-time
-
Blazing fast JS transpilation & minification with esbuild
-
Filename chunkhash using Webpack 4
-
Filename chunkhash using Webpack 5
-
Filename contenthash using Webpack 4
-
Filename contenthash using Webpack 5
-
Filename hash using Webpack 4
-
Filename hash using Webpack 5
-
See the different output formats Webpack supports
-
See how different library-targets externalize modules
-
See how Webpack magic comments influence code-splitting
-
Webpack's experimental ESM module output
-
Webpack's Split Chunks on all chunks
-
split-chunks-all-dynamic-import
Webpack's Split Chunks on all chunks w/ dynamic import
-
split-chunks-individual-dependency-vendors
Webpack's Split Chunks to individually chunk each node module
-
tree-shaking-lodash-babel-plugin
Tree-shaking performance using babel-plugin-lodash
-
tree-shaking-lodash-babel-webpack-plugin
Tree-shaking performance using babel-plugin-lodash & lodash-webpack-plugin
-
Tree-shaking performance with lodash-es
-
Tree-shaking performance with lodash-es using Webpack 4
-
Bundling performance importing specific lodash utils
$ nvm i # Use appropriate Node.js version via http://nvm.sh
$ pnpm i --frozen-lockfile # Install dependencies using pnpm
$ pnpm run -r build
$ pnpm run -C demos/<PACKAGE_NAME> build