webpack/examples
Justin Greenberg 7bf2e9b98e Update template.md 2016-01-08 21:24:58 -05:00
..
agressive-merging Updated examples 2015-06-13 17:44:58 +02:00
chunkhash correct formating 2015-11-20 22:30:53 +01:00
code-splitted-css-bundle Updated examples 2015-06-13 17:44:58 +02:00
code-splitted-dedupe Updated examples 2015-06-13 17:44:58 +02:00
code-splitted-require.context Updated examples 2015-06-13 17:44:58 +02:00
code-splitted-require.context-amd Updated examples 2015-06-13 17:44:58 +02:00
code-splitting Updated examples 2015-06-13 17:44:58 +02:00
code-splitting-bundle-loader Updated examples 2015-06-13 17:44:58 +02:00
code-splitting-harmony added code-splitting-harmony example 2015-09-03 11:36:30 +02:00
coffee-script Updated examples 2015-06-13 17:44:58 +02:00
common-chunk-and-vendor-chunk Common and vendor chunk example 2016-01-03 21:07:08 -06:00
commonjs Updated examples 2015-06-13 17:44:58 +02:00
css-bundle Updated examples 2015-06-13 17:44:58 +02:00
dedupe Updated examples 2015-06-13 17:44:58 +02:00
dll added dll example with module 2015-10-13 16:19:11 +02:00
dll-user added dll example with module 2015-10-13 16:19:11 +02:00
explicit-vendor-chunk Updated examples 2015-06-13 17:44:58 +02:00
externals Updated examples 2015-06-13 17:44:58 +02:00
extra-async-chunk Updated examples 2015-06-13 17:44:58 +02:00
extra-async-chunk-advanced Updated examples 2015-06-13 17:44:58 +02:00
harmony Added experimental usage tracking of ES6 modules and example 2015-10-21 21:05:01 +02:00
harmony-unused Update template.md 2016-01-08 21:24:58 -05:00
hybrid-routing Updated examples 2015-06-13 17:44:58 +02:00
i18n Updated examples 2015-06-13 17:44:58 +02:00
labeled-modules Updated examples 2015-06-13 17:44:58 +02:00
loader Updated examples 2015-06-13 17:44:58 +02:00
mixed Updated examples 2015-06-13 17:44:58 +02:00
move-to-parent updated plugin calls to options object 2015-10-31 16:31:10 +01:00
multi-compiler Updated examples 2015-06-13 17:44:58 +02:00
multi-part-library Updated examples 2015-06-13 17:44:58 +02:00
multiple-commons-chunks updated plugin calls to options object 2015-10-31 16:31:10 +01:00
multiple-entry-points Updated examples 2015-06-13 17:44:58 +02:00
multiple-entry-points-commons-chunk-css-bundle updated plugin calls to options object 2015-10-31 16:31:10 +01:00
named-chunks Updated examples 2015-06-13 17:44:58 +02:00
node_modules added dll example with module 2015-10-13 16:19:11 +02:00
require.context Updated examples 2015-06-13 17:44:58 +02:00
require.resolve Updated examples 2015-06-13 17:44:58 +02:00
two-explicit-vendor-chunks Updated examples 2015-06-13 17:44:58 +02:00
web-worker Updated examples 2015-06-13 17:44:58 +02:00
README.md added explicit step to run npm install when building an example 2015-11-11 10:53:41 -08:00
build-common.js don't throw away error on error 2015-11-20 19:58:16 +01:00
buildAll.js better examples generation, so that example can acctually run 2013-12-19 23:23:12 +01:00
template-common.js removed empty lines from code in examples 2014-04-17 08:41:14 +02:00

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)