mirror of https://github.com/webpack/webpack.git
40 lines
464 B
Markdown
40 lines
464 B
Markdown
|
# example.js
|
||
|
|
||
|
This example illustrates how to specify chunk name in `require.ensure()` and `import()` to separated modules into separate chunks manually.
|
||
|
|
||
|
``` javascript
|
||
|
{{example.js}}
|
||
|
```
|
||
|
|
||
|
# templates/
|
||
|
|
||
|
* foo.js
|
||
|
* baz.js
|
||
|
* bar.js
|
||
|
|
||
|
All templates are of this pattern:
|
||
|
|
||
|
``` javascript
|
||
|
{{templates/foo.js}}
|
||
|
```
|
||
|
|
||
|
# js/output.js
|
||
|
|
||
|
``` javascript
|
||
|
{{js/output.js}}
|
||
|
```
|
||
|
|
||
|
# Info
|
||
|
|
||
|
## Uncompressed
|
||
|
|
||
|
```
|
||
|
{{stdout}}
|
||
|
```
|
||
|
|
||
|
## Minimized (uglify-js, no zip)
|
||
|
|
||
|
```
|
||
|
{{min:stdout}}
|
||
|
```
|