]> git.r.bdr.sh - rbdr/serpentity/blobdiff - gulpfile.js
Merge branch 'release/1.0.0'
[rbdr/serpentity] / gulpfile.js
index edd97d08a2fabe3824dbd5a0b8ed2aeb06f41221..dcb689bf31f06e897f20862c5597e3bba1752355 100644 (file)
@@ -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'));
 });