node package manager

gulp-strip-debug

gulp-strip-debug Build Status

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

Install

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

Usage

const gulp = require('gulp');
const stripDebug = require('gulp-strip-debug');
 
gulp.task('default', () =>
    gulp.src('src/app.js')
        .pipe(stripDebug())
        .pipe(gulp.dest('dist'))
);

License

MIT © Sindre Sorhus