webpack/examples/code-splitting-specify-chun.../template.md

40 lines
456 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
## Unoptimized
```
{{stdout}}
```
## Production mode
```
{{production:stdout}}
```