Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
Add uglify.output Option in Build
Browse files Browse the repository at this point in the history
`uglify` option in `build` now accepts `uglify.output` consistent with the Uglify2 API.

This change does NOT change existing behaviour as the inconsistent `uglify.beautify` is still valid. Internally `uglify.output` is copied into `uglify.beautify`, when the latter is not specified. If `uglify.beautify` is specified, then `uglify.output` is ignored.
  • Loading branch information
Rahul Gupta committed Jul 15, 2017
1 parent 3385a9c commit e1b85ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,9 @@ function processOutputOpts(options, defaults) {
extend(opts, options);

opts.uglify = opts.uglify || {};
opts.uglify.output = opts.uglify.output || {};
opts.uglify.compress = opts.uglify.compress || {};
opts.uglify.beautify = opts.uglify.beautify || {};
opts.uglify.beautify = opts.uglify.beautify || opts.uglify.output;

// NB deprecated these for uglify directly
if (opts.globalDefs && !('global_defs' in opts.uglify.compress))
Expand Down

0 comments on commit e1b85ca

Please sign in to comment.