Skip to content

Commit 68235a2

Browse files
committed
Merge pull request babel#837 from kangax/patch-1
Add minified to the options
2 parents ced57e3 + 411d2f5 commit 68235a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/usage/options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ $ babel --name=value
4242
| `babelrc` | `true` | Specify whether or not to use .babelrc and .babelignore files. |
4343
| `ast` | `true` | Include the AST in the returned object |
4444
| `compact` | `"auto"` | Do not include superfluous whitespace characters and line terminators. When set to `"auto"` compact is set to `true` on input sizes of >100KB. |
45+
| `minified` | `false` | Should the output be minified (not printing last semicolons in blocks, printing literal string values instead of escaped ones, stripping `()` from `new` when safe) |
4546
| `comments` | `true` | Output comments in generated output. |
4647
| `shouldPrintComment` | null | An optional callback that controls whether a comment should be output or not. Called as `shouldPrintComment(commentContents)`. **NOTE:** This overrides the `comment` option when used. |
4748
| `env` | `{}` | This is an object of keys that represent different environments. For example, you may have: `{ env: { production: { /* specific options */ } } }` which will use those options when the enviroment variable `BABEL_ENV` is set to `"production"`. If `BABEL_ENV` isn't set then `NODE_ENV` will be used, if it's not set then it defaults to `"development"` |

0 commit comments

Comments
 (0)