Questions tagged [ngmin]

ngmin is an AngularJS application pre-minifier. The goal is ultimately to use this alongside yeoman and grunt to make developing and building Angular apps fast, easy, and fun.

3 questions
23
votes
2 answers

Gulp ngmin + uglify not working properly

I have the following gulp task: gulp.task('scripts', function() { return gulp.src(['app/js/app.js', 'app/config/config.js', 'app/js/controllers.js', 'app/js/directives.js' , 'app/js/filters.js', 'app/js/footer.js', …
Oleg Belousov
  • 9,981
  • 14
  • 72
  • 127
2
votes
1 answer

angular js $injector:modulerr Failed to instantiate module with mangle

Trying to uglify angularjs app with mangle causes the error. However I've read that that should be fixed by ngmin. I use ngmin to properly wrap my controller code in an array as required by angular. I can confirm that ngmin works and all my code is…
Harry
  • 52,711
  • 71
  • 177
  • 261
0
votes
1 answer

Grunt-ngmin: is it possible to replace old files to new ones?

I'm using grunt-ngmin to convert AngularJS DI. I wonder: is it possible to replace old files with new ones without saving them to another location?
Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176