gulp-strip-debug-option
v4.0.0
Published
Strip console and debugger statements from JavaScript code
Downloads
931
Maintainers
Readme
Strip
console
,alert
, anddebugger
statements from JavaScript code withstrip-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