Skip to content

Commit

Permalink
feat: enable uglify mangle and compress
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdiogo authored and daviddias committed Apr 24, 2018
1 parent 693cd20 commit 8d323b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function minify (ctx, task) {
return fs.readFile(path.join(process.cwd(), 'dist', 'index.js'))
.then((code) => {
const result = Uglify.minify(code.toString(), {
mangle: false,
compress: false
mangle: true,
compress: { unused: false }
})
if (result.error) {
throw result.error
Expand Down

0 comments on commit 8d323b7

Please sign in to comment.