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