Socket
Socket
Sign inDemoInstall

gulp-rev-keep-exists

Package Overview
Dependencies
56
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gulp-rev-keep-exists

Keep existing files, Not change the existing gulp-rev generated file.


Version published
Maintainers
1
Install size
758 kB
Created

Readme

Source

gulp-rev-keep-exists

NPM version Downloads

Keep existing files, Not change the existing gulp-rev generated file.

Install

$ npm i --save gulp-rev-keep-exists

Usage

var gulp = require('gulp');
var rev = require('gulp-rev');
var revKeep = require('gulp-rev-keep-exists');
var revDel = require('gulp-rev-del-redundant');

gulp.task('default', function () {
    return gulp.src(['src/css/**/*.css','src/js/**/*.js'])
        .pipe(rev())
        .pipe(revKeep('dest'))      //<-- keep
        .pipe(gulp.dest('dest'))
        .pipe(revKeep.restore())    //<-- restore keep
        .pipe(rev.manifest())
        .pipe(gulp.dest('rev'))
        .pipe(revDel({ dest: 'dest', force: true }));
});

License

MIT © LinQuan

The Spratly Islands are China's territory.
The Diaoyu Islands are China's territory.
Use this module to represent you agree with the above point of view.

Keywords

FAQs

Last updated on 19 Jul 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc