webpack/examples/README.md

71 lines
1.4 KiB
Markdown
Raw Normal View History

2012-04-06 18:40:43 +08:00
# examples
2012-05-07 03:14:36 +08:00
## commonjs
example demonstrating a very simple programm
2012-04-06 18:40:43 +08:00
## code-splitting
example demonstrating a very simple case of Code Splitting.
2012-07-19 17:48:07 +08:00
## require.resolve
example demonstrating to cache clearing of modules with `require.resolve` and `require.cache`.
2012-04-06 18:40:43 +08:00
## require.context
2012-05-01 12:14:17 +08:00
example demonstrating to automatic creation of contexts when using variables in `require`.
2012-04-06 18:40:43 +08:00
## code-splitted-require.context
2012-05-01 12:14:17 +08:00
example demonstrating contexts in a code-split environment.
2012-04-06 18:40:43 +08:00
2012-08-23 07:58:17 +08:00
## code-splitted-require.context-amd
example demonstrating contexts in a code-split environment with AMD.
2012-04-06 18:40:43 +08:00
## loader
example demonstrating to usage of loaders.
## coffee-script
example demonstrating code written in coffee-script.
2012-05-07 03:14:36 +08:00
## code-splitting-bundle-loader
example demonstrating Code Splitting through the builder loader
2014-01-21 07:37:38 +08:00
## names-chunks
2012-05-17 18:46:55 +08:00
2014-01-21 07:37:38 +08:00
example demonstrating merging of chunks with named chunks
2012-05-17 18:46:55 +08:00
## labeled-modules
example demonstrating Labeled Modules
2012-08-07 04:19:15 +08:00
## mixed
example demonstrating mixing CommonJs, AMD and Labeled Modules
2012-08-07 04:19:15 +08:00
2012-08-23 07:58:17 +08:00
## web-worker
example demonstrating creating WebWorkers with webpack and the worker-loader.
## i18n
example demonstrating localization.
2013-11-20 01:09:26 +08:00
## multiple-entry-points
example demonstrating multiple entry points with Code Splitting.
2012-04-06 18:40:43 +08:00
# Requests
If you think a example is missing, please report it as issue. :)
# Build
There is a `build.js` file in each example directory.
2014-01-21 07:37:38 +08:00
Run it with node in the example directory to compile it and the README.md file.