gulp strip debug

Strip console, alert, and debugger statements from JavaScript code

251
19
JavaScript

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'))
);