Skip to content
This repository was archived by the owner on Mar 26, 2018. It is now read-only.

Commit 3eea4cb

Browse files
committed
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.
1 parent 43978f5 commit 3eea4cb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

templates/common/root/_Gruntfile.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,9 @@ module.exports = function (grunt) {
349349
}
350350
},
351351

352-
// ngmin tries to make the code safe for minification automatically by
353-
// using the Angular long form for dependency injection. It doesn't work on
354-
// things like resolve or inject so those have to be done manually.
355-
ngmin: {
352+
// ng-annotate tries to make the code safe for minification automatically
353+
// by using the Angular long form for dependency injection.
354+
ngAnnotate: {
356355
dist: {
357356
files: [{
358357
expand: true,
@@ -482,7 +481,7 @@ module.exports = function (grunt) {
482481
'concurrent:dist',
483482
'autoprefixer',
484483
'concat',
485-
'ngmin',
484+
'ngAnnotate',
486485
'copy:dist',
487486
'cdnify',
488487
'cssmin',

templates/common/root/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"grunt-filerev": "^0.2.1",
2222
"grunt-google-cdn": "^0.4.0",
2323
"grunt-newer": "^0.7.0",
24-
"grunt-ngmin": "^0.0.3",
24+
"grunt-ng-annotate": "^0.3.0",
2525
"grunt-svgmin": "^0.4.0",
2626
"grunt-usemin": "^2.1.1",
2727
"grunt-wiredep": "^1.7.0",

0 commit comments

Comments
 (0)