The CommonJS group defined a module format to solve JavaScript scope issues by making sure each module is executed in its own namespace. This
Prerequirement: Code Splitting If you need multiple bundles
Note: The webpack-dev-middleware is for advanced users. See webpack-dev-server
extension semantic loader examples .js
There is a grunt plugin for using webpack and the webpack-dev-server:
Minimize To minimize your scripts (and your css, if you use the css-loader) webpack supports a simple option:
To effectively cache your files, they should have a hash or version in their URL. You can emit or move the output files manually in a folder called v1
In some cases webpack cannot parse some file, because it has a unsupported module format or isn?t even in a module format. Therefore you have many options to convert the file
Note that Hot Module Replacement (HMR) is still an experimental feature. Introduction Hot Module
https://github.com/webpack/karma-webpack
Page 4 of 5