Skip to content

Strip console, alert, and debugger statements from JavaScript code

License

Notifications You must be signed in to change notification settings

sindresorhus/gulp-strip-debug

Repository files navigation

gulp-strip-debug

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

Install

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

Usage

import gulp from 'gulp';
import stripDebug from'gulp-strip-debug';

export default () => (
	gulp.src('src/app.js')
		.pipe(stripDebug())
		.pipe(gulp.dest('dist'))
);