Skip to content

Instantly share code, notes, and snippets.

@brunokrebs
Last active February 22, 2016 12:17
Show Gist options
  • Save brunokrebs/0f9ae1cc74bba5e49b6a to your computer and use it in GitHub Desktop.
Save brunokrebs/0f9ae1cc74bba5e49b6a to your computer and use it in GitHub Desktop.
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