2012-04-05 20:59:01 +08:00
|
|
|
# example.js
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{{example.js}}
|
|
|
|
```
|
|
|
|
|
|
|
|
# file.js
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{{file.js}}
|
|
|
|
```
|
|
|
|
|
|
|
|
# loader.js
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{{loader.js}}
|
|
|
|
```
|
|
|
|
|
2016-12-07 18:44:12 +08:00
|
|
|
# test.css
|
2012-04-05 20:59:01 +08:00
|
|
|
|
2016-12-14 19:03:24 +08:00
|
|
|
``` css
|
2016-12-07 18:44:12 +08:00
|
|
|
{{test.css}}
|
2012-04-05 20:59:01 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
# js/output.js
|
|
|
|
|
|
|
|
``` javascript
|
|
|
|
{{js/output.js}}
|
|
|
|
```
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
## Uncompressed
|
|
|
|
|
|
|
|
```
|
|
|
|
{{stdout}}
|
2013-12-16 06:30:25 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Minimized (uglify-js, no zip)
|
|
|
|
|
|
|
|
```
|
|
|
|
{{min:stdout}}
|
|
|
|
```
|