You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tobias Koppers 47ae6dc211 only add deduplicate code if deduplicated modules are in the chunk. 9 years ago
..
code-splitted-dedupe only add deduplicate code if deduplicated modules are in the chunk. 9 years ago
code-splitted-require.context updated examples 9 years ago
code-splitted-require.context-amd updated examples 9 years ago
code-splitting updated examples 9 years ago
code-splitting-bundle-loader updated examples 9 years ago
coffee-script updated examples 9 years ago
commonjs updated examples 9 years ago
component updated examples 9 years ago
dedupe only add deduplicate code if deduplicated modules are in the chunk. 9 years ago
i18n updated examples 9 years ago
labeled-modules updated examples 9 years ago
loader updated examples 9 years ago
mixed updated examples 9 years ago
named-chucks updated examples 9 years ago
require.context updated examples 9 years ago
require.resolve updated examples 9 years ago
web-worker updated examples 9 years ago
README.md fixed require: "aa", "bb" and added examples for labeled modules 9 years ago
build-common.js updated examples 9 years ago
buildAll.js added another dedupe example 9 years ago
template-common.js removed logging 9 years ago

README.md

examples

commonjs

example demonstrating a very simple programm

code-splitting

example demonstrating a very simple case of Code Splitting.

require.resolve

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

require.context

example demonstrating to 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 to 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-chucks

example demonstrating merging of chucks with named chucks

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.

Requests

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

Build

There is a build.js file in each example directory.
Run it with node in the example directory to compile it and the README.md file.