1.0.1 • Published 9 years ago

gulp-walc v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

gulp-walc

Removes console or alert functions in your scripts.

Install

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-walc

Usage

var walc = require('gulp-walc');

gulp.task('clean', function() {
  return gulp.src('app/*.js')
    .pipe(walc({console:'comment'}))
    .pipe(gulp.dest('dist'));
});

Options

  • console : Pass 'ignore' or 'comment', default is 'remove'.

  • alert : Idem console.

Notes

If no options object is passed, 'remove' action will be executed.