4.0.0 • Published 5 years ago

gulp-strip-debug-option v4.0.0

Weekly downloads
36
License
MIT
Repository
github
Last release
5 years ago

Strip console, alert, and debugger statements from JavaScript code with strip-debug-option

Install

$ npm install --save-dev gulp-strip-debug-option

Usage

const gulp = require('gulp');
const stripDebug = require('gulp-strip-debug-option');

const option={
	skipDebugger:false,
	skipConsole:false,
	skipAlert:false
}

gulp.task('default', () =>
	gulp.src('src/app.js')
		.pipe(stripDebug(option))
		.pipe(gulp.dest('dist'))
);

License

MIT