From 4c329508c3a6c56076c110cd4397fef0a219f7ce Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sun, 27 Mar 2016 23:33:46 -0600 Subject: Adds the minifying process back --- gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index edd97d0..dcb689b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -3,6 +3,8 @@ const Gulp = require('gulp'); const Babel = require('gulp-babel'); const Concat = require('gulp-concat'); +const Rename = require('gulp-rename'); +const Uglify = require('gulp-uglify'); Gulp.task('build', function() { Gulp.src([ @@ -17,5 +19,10 @@ Gulp.task('build', function() { presets: ['es2015'] })) .pipe(Concat('serpentity.js')) + .pipe(Gulp.dest('dist')) + .pipe(Uglify()) + .pipe(Rename({ + suffix: '.min' + })) .pipe(Gulp.dest('dist')); }); -- cgit