Code breaks after using gulp-uglify : Ionic Framework -


i'm new ionicframework , new using gulp. setting workflow , use gulp-uglify minify app files. after using code breaks checked on console , got error.

uncaught error: [$injector:modulerr] failed instantiate module ebhealth due to: error: [$injector:unpr] unknown provider: t

i using gulp function gather js file specified location, concatenate them all.js uglify/minify.

gulp.task('app-scripts', function(){     return gulp.src(paths.scripts)     .pipe(concat('all.js'))     .pipe(uglify())     .pipe(gulp.dest('www/app-dist/')); }); 

after executing command, checked all.js , indeed looks minified , uglified when refresh browser throws error. doing wrong?

add ng-annotate or format injection with, example ["$scope",function($scope){ }] instead of function($scope)

its common mistake / reuirement angularjs minification / uglification


Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -