|
1 | 1 | = Main Command-Line options |
2 | 2 |
|
3 | | -|= Option name |= Description | |
4 | | -| --version | Display the version of the compiler | |
5 | | -| -o <file> | Set the output filename to <file> | |
6 | | -| --source-map | Generate sourcemap | |
7 | | -| --opt {1,2,3} | Set the compilation profile |
8 | | - (default 1). See **Optimization** |
9 | | - section below. | |
10 | | -| --pretty | Pretty print javascript output | |
11 | | -| --target-env | Build javascript for the requested |
12 | | - environment (default "isomorphic"). |
13 | | - Isomorphic javascript runs in both the |
14 | | - browser & nodejs. "nodejs" & "browser" |
15 | | - options bundle less javascript, but |
16 | | - drop support for APIs incompatible with |
17 | | - the selected runtime. | |
18 | | -| --no-inline | Disable code inlining | |
19 | | -| --debug-info | Output debug information | |
20 | | -| -I dir | Add <dir> to the list of |
21 | | - include directories | |
22 | | -| --file file[:target] | Register <file> to the pseudo filesystem |
23 | | - and choose the destination <target>. The |
24 | | - <target> can be a directory or a file |
25 | | - (default /static/) | |
26 | | -| --enable <option> | Enable option <option> | |
27 | | -| --disable <option> | Disable option <option> | |
| 3 | +|= Option name |= Description | |
| 4 | +| {{{--version}}} | Display the version of the compiler | |
| 5 | +| {{{-o <file>}}} | Set the output filename to <file> | |
| 6 | +| {{{--source-map}}} | Generate sourcemap | |
| 7 | +| {{{--opt {1,2,3} }}} | Set the compilation profile |
| 8 | + (default 1). See **Optimization** |
| 9 | + section below. | |
| 10 | +| {{{--pretty}}} | Pretty print javascript output | |
| 11 | +| {{{--target-env}}} | Build javascript for the requested |
| 12 | + environment (default {{{isomorphic}}}). |
| 13 | + Isomorphic javascript runs in both the |
| 14 | + browser & nodejs. {{{nodejs}}} & {{{browser}}} |
| 15 | + options bundle less javascript, but |
| 16 | + drop support for APIs incompatible with |
| 17 | + the selected runtime. | |
| 18 | +| {{{--no-inline}}} | Disable code inlining | |
| 19 | +| {{{--debug-info}}} | Output debug information | |
| 20 | +| {{{-I dir}}} | Add <dir> to the list of |
| 21 | + include directories | |
| 22 | +| {{{--file file[:target]}}} | Register <file> to the pseudo filesystem |
| 23 | + and choose the destination <target>. The |
| 24 | + <target> can be a directory or a file |
| 25 | + (default /static/) | |
| 26 | +| {{{--enable <option>}}} | Enable option <option> | |
| 27 | +| {{{--disable <option>}}} | Disable option <option> | |
28 | 28 |
|
29 | 29 | =Optimizations |
30 | | - * For Debugging: "--pretty --no-inline --debug-info" + eventually "--disable staticeval --disable share" |
31 | | - * For Production: "--opt 3". It minimize the generated javascript by applying |
| 30 | + * For Debugging: {{{--pretty --no-inline --debug-info}}} + eventually {{{--disable staticeval --disable share}}} |
| 31 | + * For Production: {{{--opt 3}}}. It minimize the generated javascript by applying |
32 | 32 | various optimizations until a fix-point is reached |
33 | | -==List of option to "--disable" or "--enable" |
| 33 | +==List of option to {{{--disable}}} or {{{--enable}}} |
34 | 34 |
|
35 | 35 | |= Option name |= Default |= Description | |
36 | 36 | | pretty | false | Pretty print the javascript output | |
|
0 commit comments