Gulp plugin to use packer
npm install --save-dev gulp-js-minify
var minifyjs = require('gulp-js-minify');
gulp.task('minify-js', function(){
gulp.src('./dist/a.js')
.pipe(minifyjs())
.pipe(gulp.dest('./dist/'));
});
Gulp plugin to use packer
npm install --save-dev gulp-js-minify
var minifyjs = require('gulp-js-minify');
gulp.task('minify-js', function(){
gulp.src('./dist/a.js')
.pipe(minifyjs())
.pipe(gulp.dest('./dist/'));
});