Skip to content

Commit

Permalink
Merge pull request #1125 from alubbe/terser
Browse files Browse the repository at this point in the history
Replace uglify with terser
  • Loading branch information
Siemienik authored Feb 18, 2020
2 parents c8a26c1 + 1c404a2 commit 66b9585
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 7 additions & 5 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-terser');
grunt.loadNpmTasks('grunt-contrib-jasmine');
grunt.loadNpmTasks('grunt-contrib-copy');

Expand Down Expand Up @@ -46,9 +46,11 @@ module.exports = function(grunt) {
dest: './build/web/exceljs.spec.js',
},
},
uglify: {
terser: {
options: {
banner: '/*! ExcelJS <%= grunt.template.today("dd-mm-yyyy") %> */\n',
output: {
preamble: '/*! ExcelJS <%= grunt.template.today("dd-mm-yyyy") %> */\n',
},
},
dist: {
files: {
Expand Down Expand Up @@ -92,6 +94,6 @@ module.exports = function(grunt) {
},
});

grunt.registerTask('build', ['babel', 'browserify', 'uglify', 'copy']);
grunt.registerTask('ug', ['uglify']);
grunt.registerTask('build', ['babel', 'browserify', 'terser', 'copy']);
grunt.registerTask('ug', ['terser']);
};
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"grunt-browserify": "^5.3.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-jasmine": "^2.1.0",
"grunt-contrib-uglify": "^4.0.1",
"grunt-terser": "^1.0.0",
"grunt-contrib-watch": "^1.1.0",
"husky": "^2.2.0",
"lint-staged": "^8.1.5",
Expand All @@ -137,7 +137,6 @@
"request": "^2.88.0",
"semver": "^5.6.0",
"ts-node": "^8.6.2",
"typescript": "^3.7.5",
"uglify-js": "^3.4.9"
"typescript": "^3.7.5"
}
}

0 comments on commit 66b9585

Please sign in to comment.