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

Add uglify.output option #820

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "systemjs-builder",
"version": "0.15.35",
"version": "0.15.36",
"description": "SystemJS Build Tool",
"main": "index.js",
"dependencies": {
Expand All @@ -18,7 +18,7 @@
"source-map": "^0.5.3",
"systemjs": "^0.19.43",
"traceur": "0.0.105",
"uglify-js": "^2.6.1"
"uglify-js": "~2.7.5"
},
"devDependencies": {
"babel": "^5.8.38",
Expand Down