Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
feat(build): Turn on mangling for uglify (#1841)
Browse files Browse the repository at this point in the history
Turns on mangling for uglify (minified javascript for production).

Previously this might've caused issues with AngularJS, but since we are now using `ngAnnotate`, those issues are gone.

https://github.com/mishoo/UglifyJS2#minify-options
  • Loading branch information
simison authored Aug 13, 2017
1 parent c467c84 commit 1e3eeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ gulp.task('uglify', function () {
return gulp.src(assets)
.pipe(plugins.ngAnnotate())
.pipe(plugins.uglify({
mangle: false
mangle: true
}))
.pipe(plugins.concat('application.min.js'))
.pipe(plugins.rev())
Expand Down

0 comments on commit 1e3eeb7

Please sign in to comment.