Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Strip console, alert, and debugger statements from JavaScript code
https://github.com/sindresorhus/gulp-strip-debug

ast debug gulp-plugin javascript nodejs strip

Last synced: about 1 month ago
JSON representation

Strip console, alert, and debugger statements from JavaScript code

Awesome Lists containing this project

README

        

# gulp-strip-debug

> Strip `console`, `alert`, and `debugger` statements from JavaScript code with [`strip-debug`](https://github.com/sindresorhus/strip-debug)

## Install

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

## Usage

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

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