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