Last active
February 22, 2016 12:17
-
-
Save brunokrebs/0f9ae1cc74bba5e49b6a 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 gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
// concat-js definition ... | |
gulp.task('uglify', ['concat-js'], function() { | |
return gulp.src('./dist/wysiwyg.js') | |
.pipe(uglify()) | |
.pipe(rename(function (path) { | |
path.basename += ".min"; | |
return path; | |
})) | |
.pipe(gulp.dest('./dist')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment