node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

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

var gulp = require('gulp');
var stripDebug = require('gulp-strip-debug');
 
gulp.task('default', function () {
    return gulp.src('src/app.js')
        .pipe(stripDebug())
        .pipe(gulp.dest('dist'));
});

License

MIT © Sindre Sorhus