Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sindresorhus/gulp-strip-debug
- Owner: sindresorhus
- License: mit
- Created: 2014-01-11T20:51:28.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T13:27:07.000Z (about 1 year ago)
- Last Synced: 2024-04-13T17:55:18.319Z (7 months ago)
- Topics: ast, debug, gulp-plugin, javascript, nodejs, strip
- Language: JavaScript
- Homepage: https://github.com/sindresorhus/strip-debug
- Size: 19.5 KB
- Stars: 249
- Watchers: 11
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
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'))
);
```