update documentation

fixes #465
This commit is contained in:
alexlamsl 2017-04-15 16:00:37 +08:00
parent f6d964dce5
commit 6e95c16da6

View File

@ -538,8 +538,8 @@ You can pass `--comments` to retain certain comments in the output. By
default it will keep JSDoc-style comments that contain "@preserve", default it will keep JSDoc-style comments that contain "@preserve",
"@license" or "@cc_on" (conditional compilation for IE). You can pass "@license" or "@cc_on" (conditional compilation for IE). You can pass
`--comments all` to keep all the comments, or a valid JavaScript regexp to `--comments all` to keep all the comments, or a valid JavaScript regexp to
keep only comments that match this regexp. For example `--comments keep only comments that match this regexp. For example `--comments /^!/`
'/foo|bar/'` will keep only comments that contain "foo" or "bar". will keep comments like `/*! Copyright Notice */`.
Note, however, that there might be situations where comments are lost. For Note, however, that there might be situations where comments are lost. For
example: example: