webpack/examples
Tobias Koppers 8e69a80847 code linting 2017-01-11 12:29:01 +01:00
..
agressive-merging code linting 2017-01-11 12:29:01 +01:00
chunkhash code linting 2017-01-11 12:29:01 +01:00
code-splitted-css-bundle code linting 2017-01-11 12:29:01 +01:00
code-splitted-require.context regenerated examples 2016-12-23 09:24:32 +01:00
code-splitted-require.context-amd regenerated examples 2016-12-23 09:24:32 +01:00
code-splitting regenerated examples 2016-12-23 09:24:32 +01:00
code-splitting-bundle-loader regenerated examples 2016-12-23 09:24:32 +01:00
code-splitting-harmony regenerated examples 2016-12-23 09:24:32 +01:00
code-splitting-native-import-context regenerated examples 2016-12-23 09:24:32 +01:00
coffee-script code linting 2017-01-11 12:29:01 +01:00
common-chunk-and-vendor-chunk regenerated examples 2016-12-23 09:24:32 +01:00
commonjs regenerated examples 2016-12-23 09:24:32 +01:00
css-bundle code linting 2017-01-11 12:29:01 +01:00
dll code linting 2017-01-11 12:29:01 +01:00
dll-user code linting 2017-01-11 12:29:01 +01:00
explicit-vendor-chunk regenerated examples 2016-12-23 09:24:32 +01:00
externals code linting 2017-01-11 12:29:01 +01:00
extra-async-chunk code linting 2017-01-11 12:29:01 +01:00
extra-async-chunk-advanced code linting 2017-01-11 12:29:01 +01:00
harmony regenerated examples 2016-12-23 09:24:32 +01:00
harmony-interop regenerated examples 2016-12-23 09:24:32 +01:00
harmony-library add harmony-library example 2016-12-23 09:24:28 +01:00
harmony-unused regenerated examples 2016-12-23 09:24:32 +01:00
http2-aggressive-splitting regenerated examples 2016-12-23 09:24:32 +01:00
hybrid-routing code linting 2017-01-11 12:29:01 +01:00
i18n code linting 2017-01-11 12:29:01 +01:00
loader regenerated examples 2016-12-23 09:24:32 +01:00
mixed regenerated examples 2016-12-23 09:24:32 +01:00
move-to-parent code linting 2017-01-11 12:29:01 +01:00
multi-compiler code linting 2017-01-11 12:29:01 +01:00
multi-part-library code linting 2017-01-11 12:29:01 +01:00
multiple-commons-chunks code linting 2017-01-11 12:29:01 +01:00
multiple-entry-points code linting 2017-01-11 12:29:01 +01:00
multiple-entry-points-commons-chunk-css-bundle code linting 2017-01-11 12:29:01 +01:00
named-chunks regenerated examples 2016-12-23 09:24:32 +01:00
node_modules added dll example with module 2015-10-13 16:19:11 +02:00
require.context regenerated examples 2016-12-23 09:24:32 +01:00
require.resolve regenerated examples 2016-12-23 09:24:32 +01:00
two-explicit-vendor-chunks code linting 2017-01-11 12:29:01 +01:00
web-worker code linting 2017-01-11 12:29:01 +01:00
README.md Added the fix for the extract-text-webpack-plugin error in the "Building an Example" part 2016-10-14 09:20:29 +02:00
build-common.js hide runtime in examples by default 2016-09-07 11:46:30 +02:00
buildAll.js fixed missing convertions in examples 2016-02-04 12:50:24 +01:00
template-common.js bettter example templating 2016-12-23 09:24:18 +01: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 npm link webpack in the root of the project.
  3. 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