# gulp-rev-delete-original

> Delete the original file rewritten by gulp-rev.

Latest version **0.2.3** (published 2017-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-rev-delete-original
pnpm add gulp-rev-delete-original
yarn add gulp-rev-delete-original
bun add gulp-rev-delete-original
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2017-02-26 |
| First published | 2015-06-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 27 |
| Maintainers | jameslnewell, nib-admin |
| Keywords | gulpplugin, rev, rev-del, gulp-rev, gulp-rev-all, gulp-rev-napkin |

## Links

- npm: https://www.npmjs.com/package/gulp-rev-delete-original
- Repository: https://github.com/nib-health-funds/gulp-rev-delete-original
- Homepage: https://github.com/nib-health-funds/gulp-rev-delete-original#readme
- Issues: https://github.com/nib-health-funds/gulp-rev-delete-original/issues
- npm.io page: https://npm.io/package/gulp-rev-delete-original

## Dependencies (2)

- [rimraf](https://npm.io/package/rimraf.md) ^2.3.4
- [through2](https://npm.io/package/through2.md) ^0.6.5

## Recent versions

- 0.2.3 (latest) — 2017-02-26
- 0.2.0 (next) — 2016-02-01
- 0.2.2 — 2016-07-27
- 0.2.1 — 2016-07-06
- 0.1.0 — 2015-12-01
- 0.0.3 — 2015-12-01
- 0.0.2 — 2015-06-24

## README

# gulp-rev-delete-original

Delete the original file rewritten by
[gulp-rev](https://www.npmjs.com/package/gulp-rev) or
[gulp-rev-all](https://www.npmjs.com/package/gulp-rev-all).

## Installation

    npm install --save-dev gulp-rev-delete-original

## Usage

```js
var gulp = require('gulp');
var rev = require('gulp-rev');
var revcss = require('gulp-rev-css-url');
var revdel = require('gulp-rev-delete-original');

gulp.task('rev', function () {
  return gulp.src('./app/**/*')
    .pipe(rev())
    .pipe(revcss())
    .pipe(revdel())
    .pipe(gulp.dest('./build/'))
  ;
});
```

## Options

#### exclude

A filter `RegExp` or `function` that allows you to exclude certain files from being deleted.

##### Example

RegExp:

```js
revdel({
  exclude: /build\.css$/
});
```

Function:

```js
revdel({
  exclude: function(file) {
    if (/build\.css$/.test(file.name)) {
      return true; //if you want to exclude the file from being deleted
    }
  }
});
```

---
_Source: https://npm.io/package/gulp-rev-delete-original · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
