kelerliao / gulp-strip-debug

Strip console, alert, and debugger statements from JavaScript code

Home Page:https://github.com/sindresorhus/strip-debug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Strip console, alert, and debugger statements from JavaScript code

https://github.com/sindresorhus/strip-debug

License:MIT License


Languages

Language:JavaScript 100.0%