Skip to content

Commit

Permalink
Update uglifyjs to support ES6 syntax. @devs: Make sure to install gr…
Browse files Browse the repository at this point in the history
…unt-contrib-uglify-es (npm install grunt-contrib-uglify-es --save-dev) before running grunt.
  • Loading branch information
hnategh committed Aug 2, 2018
1 parent 9834da7 commit dd4f998
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gruntfile.js
Expand Up @@ -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
Expand Down Expand Up @@ -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');
Expand Down
5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -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"
}
}

0 comments on commit dd4f998

Please sign in to comment.