gulp-terser-scoped

2.0.0 • Public • Published

gulp-terser-scoped Version Number License download

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'));
});

Readme

Keywords

Package Sidebar

Install

npm i gulp-terser-scoped

Weekly Downloads

6

Version

2.0.0

License

MIT

Unpacked Size

2.91 kB

Total Files

3

Last publish

Collaborators

  • xinglie