91cbb4c288
it's no longer needed for npm3 and causes many issues |
||
---|---|---|
.. | ||
agressive-merging | ||
chunkhash | ||
code-splitted-css-bundle | ||
code-splitted-require.context | ||
code-splitted-require.context-amd | ||
code-splitting | ||
code-splitting-bundle-loader | ||
code-splitting-harmony | ||
coffee-script | ||
common-chunk-and-vendor-chunk | ||
commonjs | ||
css-bundle | ||
dll | ||
dll-user | ||
explicit-vendor-chunk | ||
externals | ||
extra-async-chunk | ||
extra-async-chunk-advanced | ||
harmony | ||
harmony-interop | ||
harmony-unused | ||
http2-aggressive-splitting | ||
hybrid-routing | ||
i18n | ||
loader | ||
mixed | ||
move-to-parent | ||
multi-compiler | ||
multi-part-library | ||
multiple-commons-chunks | ||
multiple-entry-points | ||
multiple-entry-points-commons-chunk-css-bundle | ||
named-chunks | ||
node_modules | ||
require.context | ||
require.resolve | ||
two-explicit-vendor-chunks | ||
web-worker | ||
README.md | ||
build-common.js | ||
buildAll.js | ||
template-common.js |
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
- Run
npm install
in the root of the project. - Run
npm link webpack
in the root of the project. - 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