Strip console, alert, and debugger statements from JavaScript code
JavaScript
Latest commit bd1d683 Nov 14, 2015 @sindresorhus 1.1.0
Permalink
Failed to load latest commit information.
.editorconfig tweaks Sep 2, 2014
.gitattributes init Jan 11, 2014
.gitignore init Jan 11, 2014
.jshintrc tweaks Sep 2, 2014
.travis.yml Update .travis.yml Feb 8, 2015
index.js minor tweaks Nov 23, 2014
license tweaks Sep 2, 2014
package.json 1.1.0 Nov 14, 2015
readme.md Update readme.md Feb 8, 2015
test.js tweaks Sep 2, 2014

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

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