From 3eea4cbeb010eeaaf797c17604b4a3ab5371eccb Mon Sep 17 00:00:00 2001 From: John Kitsantas Date: Wed, 23 Jul 2014 23:56:17 +0300 Subject: [PATCH] refactor(gen): replace ngmin with ng-annotate The ngmin plugin is deprecated. ng-annotate offers the same functionality, more or less, plus it is actively developed. --- templates/common/root/_Gruntfile.js | 9 ++++----- templates/common/root/_package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/common/root/_Gruntfile.js b/templates/common/root/_Gruntfile.js index 64dd834f2..13bc6e52f 100644 --- a/templates/common/root/_Gruntfile.js +++ b/templates/common/root/_Gruntfile.js @@ -349,10 +349,9 @@ module.exports = function (grunt) { } }, - // ngmin tries to make the code safe for minification automatically by - // using the Angular long form for dependency injection. It doesn't work on - // things like resolve or inject so those have to be done manually. - ngmin: { + // ng-annotate tries to make the code safe for minification automatically + // by using the Angular long form for dependency injection. + ngAnnotate: { dist: { files: [{ expand: true, @@ -482,7 +481,7 @@ module.exports = function (grunt) { 'concurrent:dist', 'autoprefixer', 'concat', - 'ngmin', + 'ngAnnotate', 'copy:dist', 'cdnify', 'cssmin', diff --git a/templates/common/root/_package.json b/templates/common/root/_package.json index c38ae2dfb..e9ce9138d 100644 --- a/templates/common/root/_package.json +++ b/templates/common/root/_package.json @@ -21,7 +21,7 @@ "grunt-filerev": "^0.2.1", "grunt-google-cdn": "^0.4.0", "grunt-newer": "^0.7.0", - "grunt-ngmin": "^0.0.3", + "grunt-ng-annotate": "^0.3.0", "grunt-svgmin": "^0.4.0", "grunt-usemin": "^2.1.1", "grunt-wiredep": "^1.7.0",