A convenience option for options.output.comments. Defaults to preserving no comments.
all Preserve all comments in code blocks
license Attempts to preserve comments that likely contain licensing information, even if the comment does not have directives such as @license or /*!.
Implemented via the uglify-save-license module, this option preserves a comment if one of the following is true:
The comment is in the first line of a file A regular expression matches the string of the comment. For example: MIT, @license, or Copyright. There is a comment at the previous line, and it matches 1, 2, or 3.
function Specify your own comment preservation function. You will be passed the current node and the current comment and are expected to return either true or false.
some (deprecated) Preserve comments that start with a bang (!) or include a Closure Compiler directive (@preserve, @license, @cc_on). Deprecated in favor of the license option, documented above.
preserveComments
A convenience option for options.output.comments. Defaults to preserving no comments.
all
Preserve all comments in code blocks
license
Attempts to preserve comments that likely contain licensing information, even if the comment does not have directives such as @license or /*!.
Implemented via the uglify-save-license module, this option preserves a comment if one of the following is true:
The comment is in the first line of a file
A regular expression matches the string of the comment. For example: MIT, @license, or Copyright.
There is a comment at the previous line, and it matches 1, 2, or 3.
function
Specify your own comment preservation function. You will be passed the current node and the current comment and are expected to return either true or false.
some (deprecated)
Preserve comments that start with a bang (!) or include a Closure Compiler directive (@preserve, @license, @cc_on). Deprecated in favor of the license option, documented above.
https://www.npmjs.com/package/gulp-uglify