webpack/examples/loader/template.md

54 lines
492 B
Markdown
Raw Permalink Normal View History

2012-04-05 20:59:01 +08:00
# example.js
```javascript
_{{example.js}}_
2012-04-05 20:59:01 +08:00
```
# file.js
```javascript
_{{file.js}}_
2012-04-05 20:59:01 +08:00
```
# loader.js
```javascript
_{{loader.js}}_
2012-04-05 20:59:01 +08:00
```
# test.css
2012-04-05 20:59:01 +08:00
```css
_{{test.css}}_
2012-04-05 20:59:01 +08:00
```
# dist/output.js
2012-04-05 20:59:01 +08:00
```javascript
_{{dist/output.js}}_
2012-04-05 20:59:01 +08:00
```
# Console output
2013-02-24 09:25:25 +08:00
Prints in node.js (`enhanced-require example.js`) and in browser:
2012-04-05 20:59:01 +08:00
```
{ answer: 42, foo: 'bar' }
{ foobar: 1234 }
{ foobar: 1234 }
```
# Info
## Unoptimized
2012-04-05 20:59:01 +08:00
```
_{{stdout}}_
```
## Production mode
```
_{{production:stdout}}_
```