Strip console, alert, and debugger statements from JavaScript code
Clone or download
Latest commit a41ca74 Feb 28, 2018

readme.md

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