mirror of https://github.com/webpack/webpack.git
54 lines
492 B
Markdown
54 lines
492 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}}_
|
|
```
|