webpack
Version:
Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.
71 lines (36 loc) • 1.47 kB
Markdown
examples
# commonjs
example demonstrating a very simple programm
# code-splitting
example demonstrating a very simple case of Code Splitting.
# require.resolve
example demonstrating to cache clearing of modules with `require.resolve` and `require.cache`.
# require.context
example demonstrating to 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 to 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 a example is missing, please report it as issue. :)
Build
There is a `build.js` file in each example directory.
Run it with node in the example directory to compile it and the README.md file.