webpack/examples
Tobias Koppers 23beeab7e0
Merge pull request #7345 from stepharr/master
Fixing grammar issues in webpack example #6906
2018-06-06 21:10:29 +02:00
..
aggressive-merging
chunkhash
code-splitted-css-bundle
code-splitted-require.context
code-splitted-require.context-amd
code-splitting
code-splitting-bundle-loader
code-splitting-harmony
code-splitting-native-import-context
code-splitting-native-import-context-filter
code-splitting-specify-chunk-name
coffee-script
common-chunk-and-vendor-chunk
common-chunk-grandchildren
commonjs
dll
dll-app-and-vendor Merge pull request #7345 from stepharr/master 2018-06-06 21:10:29 +02:00
dll-entry-only added a note about production mode 2018-05-24 15:15:41 +03:00
dll-user
explicit-vendor-chunk
externals
extra-async-chunk
extra-async-chunk-advanced
harmony
harmony-interop
harmony-library
harmony-unused
http2-aggressive-splitting
hybrid-routing
i18n
loader
many-pages add split chunks example 2018-05-17 20:48:16 +02:00
mixed
multi-compiler
multi-part-library
multiple-entry-points
named-chunks
node_modules
require.context
require.resolve
scope-hoisting
side-effects
source-map
two-explicit-vendor-chunks
wasm-simple
web-worker
README.md
build-common.js
buildAll.js
examples.js
template-common.js

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

named-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

Side Effects

side-effects

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 yarn in the root of the project.
  2. Run yarn link webpack in the root of the project.
  3. Run yarn add --dev webpack-cli in the root of the project.
  4. 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