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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -