webpack/examples
Tobias Koppers 6a6cd57b26 Merge branch 'next' into import-context-filter 2017-10-16 13:55:54 +02:00
..
aggressive-merging update examples 2017-08-08 14:00:06 +02:00
chunkhash update examples 2017-08-08 14:00:06 +02:00
code-splitted-css-bundle Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
code-splitted-require.context update examples 2017-08-08 14:00:06 +02:00
code-splitted-require.context-amd update examples 2017-08-08 14:00:06 +02:00
code-splitting update examples 2017-08-08 14:00:06 +02:00
code-splitting-bundle-loader update examples 2017-08-08 14:00:06 +02:00
code-splitting-harmony update examples 2017-08-08 14:00:06 +02:00
code-splitting-native-import-context update examples 2017-08-08 14:00:06 +02:00
code-splitting-native-import-context-filter refactoring filter to include and other requested changes 2017-10-13 15:41:44 -06:00
code-splitting-specify-chunk-name update examples 2017-08-08 14:00:06 +02:00
coffee-script Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
common-chunk-and-vendor-chunk update examples 2017-08-08 14:00:06 +02:00
common-chunk-grandchildren fixed common-chunk-grandchildren example 2017-10-09 13:43:03 -06:00
commonjs update examples 2017-08-08 14:00:06 +02:00
css-bundle Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
dll update examples 2017-08-08 14:00:06 +02:00
dll-app-and-vendor update examples 2017-08-08 14:00:06 +02:00
dll-user update examples 2017-08-08 14:00:06 +02:00
explicit-vendor-chunk update examples 2017-08-08 14:00:06 +02:00
externals update examples 2017-08-08 14:00:06 +02:00
extra-async-chunk update examples 2017-08-08 14:00:06 +02:00
extra-async-chunk-advanced update examples 2017-08-08 14:00:06 +02:00
harmony update examples 2017-08-08 14:00:06 +02:00
harmony-interop update examples 2017-08-08 14:00:06 +02:00
harmony-library update examples 2017-08-08 14:00:06 +02:00
harmony-unused update examples 2017-08-08 14:00:06 +02:00
http2-aggressive-splitting update examples 2017-08-08 14:00:06 +02:00
hybrid-routing update examples 2017-08-08 14:00:06 +02:00
i18n update examples 2017-08-08 14:00:06 +02:00
loader Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
mixed update examples 2017-08-08 14:00:06 +02:00
move-to-parent update examples 2017-08-08 14:00:06 +02:00
multi-compiler update examples 2017-08-08 14:00:06 +02:00
multi-part-library update examples 2017-08-08 14:00:06 +02:00
multiple-commons-chunks update examples 2017-08-08 14:00:06 +02:00
multiple-entry-points update examples 2017-08-08 14:00:06 +02:00
multiple-entry-points-commons-chunk-css-bundle Merge branch 'next' into deprecation/webpack-3 2017-09-11 11:26:44 +02:00
named-chunks update examples 2017-08-08 14:00:06 +02:00
node_modules added dll example with module 2015-10-13 16:19:11 +02:00
require.context update examples 2017-08-08 14:00:06 +02:00
require.resolve update examples 2017-08-08 14:00:06 +02:00
scope-hoisting update examples 2017-08-08 14:00:06 +02:00
side-effects rename side-effects to sideEffects 2017-10-12 17:32:41 +02:00
source-map update examples 2017-08-08 14:00:06 +02:00
two-explicit-vendor-chunks update examples 2017-08-08 14:00:06 +02:00
web-worker update examples 2017-08-08 14:00:06 +02:00
README.md add support for pure modules 2017-09-14 09:44:42 +02:00
build-common.js Refactor example scripts and test to allow nested folders 2017-07-27 13:24:56 +02:00
buildAll.js fix building of examples 2017-08-08 13:56:14 +02:00
examples.js Refactor example scripts and test to allow nested folders 2017-07-27 13:24:56 +02:00
template-common.js Fixed Node v4 error in tests. 2017-10-05 17:03:25 -06:00

README.md

Examples

Aggressive Merging

aggressive-merging

Chunk

chunkhash

common-chunk-and-vendor-chunk

explicit-vendor-chunk

extra-async-chunk-advanced

extra-async-chunk

code-splitting-specify-chunk-name

move-to-parent

multiple-commons-chunks

multiple-entry-points-commons-chunk-css-bundle

names-chunks example demonstrating merging of chunks with named chunks

two-explicit-vendor-chunks

Code Splitted

code-splitted-css-bundle

code-splitted-require.context-amd example demonstrating contexts in a code-split environment with AMD.

code-splitted-require.context example demonstrating contexts in a code-split environment.

Code Splitting

code-splitting example demonstrating a very simple case of Code Splitting.

code-splitting-bundle-loader example demonstrating Code Splitting through the builder loader

code-splitting-harmony

code-splitting-native-import-context

code-splitting-specify-chunk-name

Coffee Script

coffee-script example demonstrating code written in coffee-script.

CommonJS

commonjs example demonstrating a very simple program

Css Bundle

css-bundle

multiple-entry-points-commons-chunk-css-bundle

DLL

dll

dll-user

Externals

externals

Harmony

harmony

code-splitting-harmony

harmony-interop

harmony-library

harmony-unused

HTTP2 Aggressive Splitting

http2-aggressive-splitting

Hybrid Routing

hybrid-routing

i18n

i18n example demonstrating localization.

Loader

loader example demonstrating the usage of loaders.

Mixed

mixed example demonstrating mixing CommonJs and AMD

Multi Compiler

multi-compiler

Multi Part Library

multi-part-library

Multiple Entry Points

multiple-entry-points example demonstrating multiple entry points with Code Splitting.

Require Context

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

Require Resolve

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

Scope Hoisting

scope-hoisting

Pure Module

pure-module

Source Map

source-map

Web Worker

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

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