Skip to content

Instantly share code, notes, and snippets.

@xcarpentier
Created December 12, 2014 15:06
Show Gist options
  • Save xcarpentier/b5c01e1bb9ec82c19741 to your computer and use it in GitHub Desktop.
Save xcarpentier/b5c01e1bb9ec82c19741 to your computer and use it in GitHub Desktop.
gulp.task('js', ['jshint'], function () {
var source = pkg.paths.js;
return gulp.src(source)
.pipe(sourcemaps.init())
.pipe(concat('all.min.js', {newLine: ';'}))
.pipe(ngAnnotate({
add: true
}))
.pipe(bytediff.start())
.pipe(uglify({mangle: true}))
.pipe(bytediff.stop())
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest(pkg.paths.dev));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment