mirror of https://github.com/webpack/webpack.git
54 lines
483 B
Markdown
54 lines
483 B
Markdown
# example.js
|
|
|
|
``` javascript
|
|
{{example.js}}
|
|
```
|
|
|
|
# file.js
|
|
|
|
``` javascript
|
|
{{file.js}}
|
|
```
|
|
|
|
# loader.js
|
|
|
|
``` javascript
|
|
{{loader.js}}
|
|
```
|
|
|
|
# test.css
|
|
|
|
``` css
|
|
{{test.css}}
|
|
```
|
|
|
|
# dist/output.js
|
|
|
|
``` javascript
|
|
{{dist/output.js}}
|
|
```
|
|
|
|
# Console output
|
|
|
|
Prints in node.js (`enhanced-require example.js`) and in browser:
|
|
|
|
```
|
|
{ answer: 42, foo: 'bar' }
|
|
{ foobar: 1234 }
|
|
{ foobar: 1234 }
|
|
```
|
|
|
|
# Info
|
|
|
|
## Unoptimized
|
|
|
|
```
|
|
{{stdout}}
|
|
```
|
|
|
|
## Production mode
|
|
|
|
```
|
|
{{production:stdout}}
|
|
```
|