Awesome
gulp-strip-debug
Strip
console
,alert
, anddebugger
statements from JavaScript code withstrip-debug
Install
npm install --save-dev gulp-strip-debug
Usage
import gulp from 'gulp';
import stripDebug from'gulp-strip-debug';
export default () => (
gulp.src('src/app.js')
.pipe(stripDebug())
.pipe(gulp.dest('dist'))
);