mirror of https://github.com/webpack/webpack.git
44 lines
482 B
Markdown
44 lines
482 B
Markdown
# example.js
|
|
|
|
``` javascript
|
|
_{{example.js}}_
|
|
```
|
|
|
|
# templates/
|
|
|
|
* a.js
|
|
* b.js
|
|
* c.js
|
|
|
|
All templates are of this pattern:
|
|
|
|
``` javascript
|
|
module.exports = function() {
|
|
return "This text was generated by template X";
|
|
}
|
|
```
|
|
|
|
# dist/output.js
|
|
|
|
``` javascript
|
|
_{{dist/output.js}}_
|
|
```
|
|
|
|
# Info
|
|
|
|
## Unoptimized
|
|
|
|
```
|
|
_{{stdout}}_
|
|
```
|
|
|
|
## Production mode
|
|
|
|
```
|
|
_{{production:stdout}}_
|
|
```
|
|
|
|
# Code Splitting
|
|
|
|
See [this example combined with code splitting](../code-splitted-require.context)
|