Socket
Socket
Sign inDemoInstall

gulp-rev-delete-original

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-rev-delete-original

Delete the original file rewritten by gulp-rev.


Version published
Weekly downloads
3.6K
decreased by-23.11%
Maintainers
2
Weekly downloads
 
Created
Source

gulp-rev-delete-original

Delete the original file rewritten by gulp-rev or gulp-rev-all.

Installation

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

Usage

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:

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

Function:

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

Keywords

FAQs

Package last updated on 26 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc