Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

examples

example demonstrating a very simple program

example demonstrating a very simple case of Code Splitting.

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

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

example demonstrating contexts in a code-split environment.

example demonstrating contexts in a code-split environment with AMD.

example demonstrating the usage of loaders.

example demonstrating code written in coffee-script.

example demonstrating Code Splitting through the builder loader

example demonstrating merging of chunks with named chunks

example demonstrating mixing CommonJs and AMD

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

example demonstrating localization.

example demonstrating multiple entry points with Code Splitting.

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