Closed cferdinandi closed 8 years ago
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);
v11.1.0
package.json
gulpfile.js