webpack/examples
Tobias Koppers 92d2a7ffbf updated examples 2013-02-13 11:58:13 +01:00
..
code-splitted-require.context updated examples 2013-02-13 11:58:13 +01:00
code-splitted-require.context-amd updated examples 2013-02-13 11:58:13 +01:00
code-splitting updated examples 2013-02-13 11:58:13 +01:00
code-splitting-bundle-loader updated examples 2013-02-13 11:58:13 +01:00
coffee-script updated examples 2013-02-13 11:58:13 +01:00
commonjs updated examples 2013-02-13 11:58:13 +01:00
loader updated examples 2013-02-13 11:58:13 +01:00
mixed updated examples 2013-02-13 11:58:13 +01:00
named-chucks updated examples 2013-02-13 11:58:13 +01:00
require.context updated examples 2013-02-13 11:58:13 +01:00
require.resolve updated examples 2013-02-13 11:58:13 +01:00
web-worker updated examples 2013-02-13 11:58:13 +01:00
README.md added more examples 2012-08-23 01:58:17 +02:00
build-common.js Refactored everything for 0.9 2013-01-30 18:49:25 +01:00
buildAll.js updated graphs to new webpack-graph version 2012-10-10 17:29:53 +02:00
template-common.js Refactored everything for 0.9 2013-01-30 18:49:25 +01:00

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

mixed

example demonstrating mixing CommonJs and AMD

web-worker

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

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.