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: 3 months 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 (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-11-03T13:27:07.000Z (over 1 year ago)
- Last Synced: 2025-03-28T10:09:22.494Z (4 months ago)
- Topics: ast, debug, gulp-plugin, javascript, nodejs, strip
- Language: JavaScript
- Homepage: https://github.com/sindresorhus/strip-debug
- Size: 19.5 KB
- Stars: 250
- Watchers: 10
- Forks: 18
- 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'))
);
```