Skip to content

Commit

Permalink
Upgrade to uglify-js@3
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jun 12, 2019
1 parent ab4a6a2 commit b1a4bce
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 42 deletions.
7 changes: 5 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ var compilerMinimalist = webpack({
});

function minify(name) {
var result = uglify.minify([DIST + '/' + name + '.js'], {
outSourceMap: name + '.map',
var code = String(fs.readFileSync(DIST + '/' + name + '.js'));
var result = uglify.minify(code, {
sourceMap: {
url: name + '.map'
},
output: {
comments: /@license/,
max_line_len: 64000 // extra large because we have embedded code for workers
Expand Down
54 changes: 15 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"json-loader": "0.5.7",
"mkdirp": "0.5.1",
"mocha": "6.1.4",
"uglify-js": "2.8.22",
"uglify-js": "3.6.0",
"webpack": "1.13.1"
}
}

0 comments on commit b1a4bce

Please sign in to comment.