This document describes the breaking API changes between versions 1 and 2 of the plugin.
-
options.compress
Use
options.uglify.compress
instead (see UglifyJS docs). -
options.nameTemplate
Removed to simplify the code.
Individual files will be compressed from
NAME.js
toNAME.min.js
. Setoptions.sameName
to keep the name as is.Concatenated files will be compressed to
scripts.min.js
, or the name set byoptions.concat.file
. -
options.order
Use
options.files
instead. -
options.output
Use
options.uglify.output
instead (see UglifyJS docs). -
options.preserveComments
Use
options.uglify.output.comments
instead (see UglifyJS docs). -
options.sourceMap
Source maps will now be generated by default. To disable, set
options.uglify.sourceMap
tofalse
.
-
options.filter
[Function]This option can only be set to a function. By default
.min.js
files will be excluded. -
options.concat
[Object]This option can only be set to an object. See README for details.