code-splitting-specify-chunk-name
multiple-entry-points-commons-chunk-css-bundle
named-chunks example demonstrating merging of chunks with named chunks
code-splitted-require.context-amd example demonstrating contexts in a code-split environment with AMD.
code-splitted-require.context example demonstrating contexts in a code-split environment.
code-splitting example demonstrating a very simple case of Code Splitting.
code-splitting-bundle-loader example demonstrating Code Splitting through the builder loader
code-splitting-native-import-context
code-splitting-specify-chunk-name
coffee-script example demonstrating code written in coffee-script.
commonjs example demonstrating a very simple program
multiple-entry-points-commons-chunk-css-bundle
i18n example demonstrating localization.
loader example demonstrating the usage of loaders.
mixed example demonstrating mixing CommonJs and AMD
multiple-entry-points example demonstrating multiple entry points with Code Splitting.
require.context example demonstrating automatic creation of contexts when using variables in require
.
require.resolve example demonstrating how to cache clearing of modules with require.resolve
and require.cache
.
web-worker example demonstrating creating WebWorkers with webpack and the worker-loader.
If you think an example is missing, please report it as issue. :)
- Run
npm install
in the root of the project. - Run
npm link webpack
in the root of the project. - Run
node build.js
in the specific example directory. (Ex:cd examples/commonjs && node build.js
)
Note: To build all examples run npm run build:examples