Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
gulp.task('scripts:dev', ['templates'], function() {
return gulp.src(paths.scripts)
.pipe(plumber())
.pipe(concat('app.js'))
.pipe(ngmin())
.on('error', notify.onError())
.pipe(gulp.dest('public/dist/js'))
.pipe(refresh(lrserver));
});
gulp.task('scripts:prod', ['templates'], function() {
return gulp.src(paths.scripts)
.pipe(concat('app.min.js'))
.pipe(ngmin())
.pipe(uglify())
.pipe(gulp.dest('public/dist/js'))
.pipe(refresh(lrserver));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment