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