Skip to content

Commit

Permalink
Replace uglify with terser for minified builds
Browse files Browse the repository at this point in the history
Ref #2266
  • Loading branch information
maxkfranz committed Jan 15, 2019
1 parent 0be2089 commit 0a9d6dc
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 32 deletions.
96 changes: 73 additions & 23 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 @@ -132,7 +132,7 @@
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-size-snapshot": "^0.8.0",
"rollup-plugin-uglify": "^6.0.0",
"rollup-plugin-terser": "^4.0.2",
"sniper": "^0.2.17",
"update": "^0.7.4",
"updater-license": "^1.0.0"
Expand Down
13 changes: 5 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import babel from 'rollup-plugin-babel';
import replace from 'rollup-plugin-replace';
import { uglify } from 'rollup-plugin-uglify';
import { terser } from "rollup-plugin-terser";
import { sizeSnapshot } from 'rollup-plugin-size-snapshot';
import license from 'rollup-plugin-license';
import path from 'path';
Expand Down Expand Up @@ -69,13 +69,10 @@ const configs = [
commonjs({ include: '**/node_modules/**' }),
BABEL ? babel(getBabelOptions()) : {},
replace(envVariables),
license(licenseHeaderOptions),
uglify({
compress: {
warnings: false,
drop_console: false
}
})
terser({
sourcemap: false
}),
license(licenseHeaderOptions)
]
},

Expand Down

0 comments on commit 0a9d6dc

Please sign in to comment.