gulp-terser-scoped
v2.0.0
Published
compress code in closure function
Downloads
1
Readme
gulp-terser-scoped
npm install gulp-terser-scoped
gulp-terser-scoped
compress code in closure function
const GulpTerser=require('gulp-terser-scoped');
gulp.task('compress', () => {
return gulp.src('./dist/*.js')
.pipe(GulpTerser({
compress: {
drop_console: true,
drop_debugger: true,
global_defs: {
DEBUG: false
}
},
output: {
ascii_only: true
}
}))
.pipe(gulp.dest('./dist'));
});