Add optimize js
Closed this issue · 1 comments
cferdinandi commented
package.json
"gulp-optimize-js": "^1.0.2",
gulpfile.js
var optimizejs = require('gulp-optimize-js');
var jsTasks = lazypipe()
.pipe(header, banner.full, { package : package })
.pipe(optimizejs)
.pipe(gulp.dest, paths.scripts.output)
.pipe(rename, { suffix: '.min' })
.pipe(uglify)
.pipe(optimizejs)
.pipe(header, banner.min, { package : package })
.pipe(gulp.dest, paths.scripts.output);
cferdinandi commented
v4.2.0