diff options
| author | Ben Beltran <ben@nsovocal.com> | 2016-03-27 23:33:46 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2016-03-27 23:33:46 -0600 |
| commit | 4c329508c3a6c56076c110cd4397fef0a219f7ce (patch) | |
| tree | 1f5cbd73caac469f871abfbe72e3bce8e21fa7f9 /gulpfile.js | |
| parent | e936d6df77f8fe351fdde3fd9be829f9bc3aae97 (diff) | |
Adds the minifying process back
Diffstat (limited to 'gulpfile.js')
| -rw-r--r-- | gulpfile.js | 7 |
1 files changed, 7 insertions, 0 deletions
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')); }); |