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.
66 lines (43 loc) • 689 B
Markdown
# webpack.config.js
``` javascript
{{webpack.config.js}}
```
# aEntry.js
``` javascript
{{aEntry.js}}
```
`bEntry.js` is similar. You may want to use a loader to generate this file.
# aPage.js
``` javascript
{{aPage.js}}
```
`bEntry.js` is similar.
# router.js
``` javascript
{{router.js}}
```
# pageA.html
``` html
{{pageA.html}}
```
# js/commons.js
``` javascript
{{js/commons.js}}
```
# js/pageA.bundle.js
``` javascript
{{js/pageA.bundle.js}}
```
# js/1.chunk.js
``` javascript
{{js/1.chunk.js}}
```
# Info
## Uncompressed
```
{{stdout}}
```
## Minimized (uglify-js, no zip)
```
{{min:stdout}}
```