Browse Source

uglify build

master
Guillermo Rauch 9 years ago
parent
commit
1ba1b23d4b
  1. 3
      gulpfile.js
  2. 3
      package.json

3
gulpfile.js

@ -3,6 +3,7 @@ const del = require('del');
const ext = require('gulp-ext'); const ext = require('gulp-ext');
const babel = require('gulp-babel'); const babel = require('gulp-babel');
const eslint = require('gulp-eslint'); const eslint = require('gulp-eslint');
const uglify = require('gulp-uglify');
const help = require('gulp-task-listing'); const help = require('gulp-task-listing');
gulp.task('help', help); gulp.task('help', help);
@ -23,6 +24,7 @@ gulp.task('compile-lib', function () {
'transform-runtime' 'transform-runtime'
] ]
})) }))
.pipe(uglify())
.pipe(gulp.dest('build/lib')); .pipe(gulp.dest('build/lib'));
}); });
@ -36,6 +38,7 @@ gulp.task('compile-bin', function () {
'transform-runtime' 'transform-runtime'
] ]
})) }))
.pipe(uglify())
.pipe(ext.crop()) .pipe(ext.crop())
.pipe(gulp.dest('build/bin')); .pipe(gulp.dest('build/bin'));
}); });

3
package.json

@ -45,7 +45,8 @@
"gulp-babel": "6.1.2", "gulp-babel": "6.1.2",
"gulp-eslint": "1.1.1", "gulp-eslint": "1.1.1",
"gulp-ext": "1.0.0", "gulp-ext": "1.0.0",
"gulp-task-listing": "1.0.1" "gulp-task-listing": "1.0.1",
"gulp-uglify": "1.5.3"
}, },
"scripts": { "scripts": {
"gulp": "gulp", "gulp": "gulp",

Loading…
Cancel
Save