Skip to content
Latest commit 5b6df06 Mar 29, 2016 @eliranmal eliranmal fix typo
..
Failed to load latest commit information.
agressive-merging updated examples Feb 4, 2016
chunkhash updated examples Feb 4, 2016
code-splitted-css-bundle updated examples Feb 4, 2016
code-splitted-dedupe updated examples Feb 4, 2016
code-splitted-require.context-amd updated examples Feb 4, 2016
code-splitted-require.context updated examples Feb 4, 2016
code-splitting-bundle-loader updated examples Feb 4, 2016
code-splitting-harmony updated examples Feb 4, 2016
code-splitting Fix typo on template.md Mar 24, 2016
coffee-script updated examples Feb 4, 2016
common-chunk-and-vendor-chunk updated examples Feb 4, 2016
commonjs updated examples Feb 4, 2016
css-bundle updated examples Feb 4, 2016
dedupe updated examples Feb 4, 2016
dll-user updated examples Feb 4, 2016
dll updated examples Feb 4, 2016
explicit-vendor-chunk updated examples Feb 4, 2016
externals updated examples Feb 4, 2016
extra-async-chunk-advanced updated examples Feb 4, 2016
extra-async-chunk updated examples Feb 4, 2016
harmony-unused fix typo Mar 29, 2016
harmony updated harmony examples Feb 13, 2016
hybrid-routing updated examples Feb 4, 2016
i18n updated examples Feb 4, 2016
labeled-modules updated examples Feb 4, 2016
loader updated examples Feb 4, 2016
mixed updated examples Feb 4, 2016
move-to-parent updated examples Feb 4, 2016
multi-compiler updated examples Feb 4, 2016
multi-part-library updated examples Feb 4, 2016
multiple-commons-chunks updated examples Feb 4, 2016
multiple-entry-points-commons-chunk-css-bundle updated examples Feb 4, 2016
multiple-entry-points updated examples Feb 4, 2016
named-chunks updated examples Feb 4, 2016
node_modules added dll example with module Oct 13, 2015
require.context updated examples Feb 4, 2016
require.resolve updated examples Feb 4, 2016
two-explicit-vendor-chunks updated examples Feb 4, 2016
web-worker updated examples Feb 4, 2016
README.md added explicit step to run npm install when building an example Nov 11, 2015
build-common.js don't throw away error on error Nov 20, 2015
buildAll.js fixed missing convertions in examples Feb 4, 2016
template-common.js removed empty lines from code in examples Apr 17, 2014

README.md

examples

commonjs

example demonstrating a very simple program

code-splitting

example demonstrating a very simple case of Code Splitting.

require.resolve

example demonstrating how to cache clearing of modules with require.resolve and require.cache.

require.context

example demonstrating automatic creation of contexts when using variables in require.

code-splitted-require.context

example demonstrating contexts in a code-split environment.

code-splitted-require.context-amd

example demonstrating contexts in a code-split environment with AMD.

loader

example demonstrating the usage of loaders.

coffee-script

example demonstrating code written in coffee-script.

code-splitting-bundle-loader

example demonstrating Code Splitting through the builder loader

names-chunks

example demonstrating merging of chunks with named chunks

labeled-modules

example demonstrating Labeled Modules

mixed

example demonstrating mixing CommonJs, AMD, and Labeled Modules

web-worker

example demonstrating creating WebWorkers with webpack and the worker-loader.

i18n

example demonstrating localization.

multiple-entry-points

example demonstrating multiple entry points with Code Splitting.

Requests

If you think an example is missing, please report it as issue. :)

Building an Example

  1. Run npm install in the root of the project.
  2. Run node build.js in the specific example directory. (Ex: cd examples/commonjs && node build.js)
Something went wrong with that request. Please try again.