X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/f77c12fd8d3f6c35ea61413d0544a0cd7030c849..169ee855dda610ea7156fc2269ca483c0a9ae14c:/gulpfile.js?ds=sidebyside 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')); });