Created
October 14, 2015 10:11
-
-
Save YOzaz/207ac77aae835ce19f7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uglify = require('gulp-uglify'); | |
var bytediff = require('gulp-bytediff'); | |
var rename = require('gulp-rename'); | |
gulp.task('prod', ['app'], function() { | |
return gulp.src('public/src/app.js') | |
.pipe(plumber()) | |
.pipe(bytediff.start()) | |
.pipe(uglify({mangle: true})) | |
.pipe(bytediff.stop()) | |
.pipe(rename('app.min.js')) | |
.pipe(plumber.stop()) | |
.pipe(gulp.dest('public/src/')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment