Skip to content

Commit 1c79040

Browse files
committed
Move from UglifyJS to Terser for JavaScript minification
1 parent 83309f4 commit 1c79040

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gruntfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ module.exports = function (grunt)
216216
src: ['<%= paths.src.sass %>**/*.{css,scss}']
217217
},
218218

219-
// Uglify and copy JavaScript files from `node_modules` and from `src/js/` to `public/assets/js/`.
220-
uglify: {
219+
// Minify and copy JavaScript files from `node_modules` and from `src/js/` to `public/assets/js/`.
220+
terser: {
221221
dist: {
222222
files: [
223223
{
@@ -274,7 +274,7 @@ module.exports = function (grunt)
274274
});
275275

276276
// Register tasks.
277-
grunt.registerTask('build', ['clean', 'concurrent', 'replace', 'uglify']);
277+
grunt.registerTask('build', ['clean', 'concurrent', 'replace', 'terser']);
278278
grunt.registerTask('css', ['stylelint', 'sass', 'postcss']);
279279
grunt.registerTask('default', ['watch']);
280280
grunt.registerTask('travis', ['build']);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
"grunt-contrib-clean": "2.0.0",
2020
"grunt-contrib-copy": "1.0.0",
2121
"grunt-contrib-jshint": "3.0.0",
22-
"grunt-contrib-uglify": "5.0.0",
2322
"grunt-contrib-watch": "1.1.0",
2423
"grunt-postcss": "0.9.0",
2524
"grunt-replace-regex": "1.0.3",
2625
"grunt-sass": "3.1.0",
2726
"grunt-stylelint": "0.16.0",
27+
"grunt-terser": "1.0.0",
2828
"load-grunt-tasks": "5.1.0",
2929
"sass": "1.32.5",
3030
"stylelint": "13.9.0",

0 commit comments

Comments
 (0)