Update uglifyjs to support ES6 syntax. @Devs: Make sure to install grunt-contrib-uglify-es (npm install grunt-contrib-uglify-es --save-dev) before running grunt.

This commit is contained in:
Hadi Nategh 2018-08-02 17:15:49 +02:00
parent e88edf8b7c
commit f62df49baa
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,7 @@
* To generate the now existing package.json:
* npm init
* npm install grunt --save-dev
* npm install grunt-contrib-uglify --save-dev
* npm install grunt-contrib-uglify-es --save-dev
* npm install grunt-newer --save-dev
* npm install grunt-contrib-cssmin --save-dev
* npm install grunt-hub --save-dev
@ -426,7 +426,7 @@ module.exports = function (grunt) {
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-uglify-es');
// Load plugin for css minificaton
grunt.loadNpmTasks('grunt-contrib-cssmin');

View File

@ -6,10 +6,11 @@
"dependencies": {},
"repository": {},
"devDependencies": {
"grunt": "^1.0.1",
"grunt": "^1.0.3",
"grunt-contrib-cssmin": "^2.2.1",
"grunt-contrib-uglify": "^3.1.0",
"grunt-contrib-uglify-es": "^3.3.0",
"grunt-hub": "^0.7.0",
"grunt-newer": "^1.2.0"
"grunt-newer": "^1.3.0"
}
}