All Projects → nib-health-funds → gulp-rev-delete-original

nib-health-funds / gulp-rev-delete-original

Licence: MIT license
Delete the original file rewritten by gulp-rev.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gulp-rev-delete-original

gulp-rev-versions-bundle
A bundle that allows symfony to get the version of assets versioned with gulp-rev
Stars: ✭ 13 (-53.57%)
Mutual labels:  gulp, gulp-rev
Login
Vue + Vue-router + Vuex 实现前端页面及逻辑,Express 实现注册登录登出的RestFul API 。
Stars: ✭ 246 (+778.57%)
Mutual labels:  gulp
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+8539.29%)
Mutual labels:  gulp
Material Admin
Free Material Admin Template
Stars: ✭ 219 (+682.14%)
Mutual labels:  gulp
Website
Techqueria is a nonprofit the serves the largest community of Latinx in Tech
Stars: ✭ 200 (+614.29%)
Mutual labels:  gulp
Gulp Html Replace
Replace build blocks in HTML. Like useref but done right.
Stars: ✭ 222 (+692.86%)
Mutual labels:  gulp
Gulp Site Generator
A static site generator using Gulp
Stars: ✭ 183 (+553.57%)
Mutual labels:  gulp
sc ext
Sitecore Extensions is a browser extension which improves user experience inside Sitecore CMS
Stars: ✭ 27 (-3.57%)
Mutual labels:  gulp
Weapp Workflow
基于Gulp 的微信小程序前端开发工作流 💯
Stars: ✭ 241 (+760.71%)
Mutual labels:  gulp
Miniprogram Ecommerce Open Source
果酱小店小程序端,基于原生小程序开发
Stars: ✭ 217 (+675%)
Mutual labels:  gulp
Gulp Image
Optimize PNG, JPEG, GIF, SVG images with gulp task.
Stars: ✭ 213 (+660.71%)
Mutual labels:  gulp
Angular2 Express Mongoose Gulp Node Typescript
AngularJS 2 (Updated to 4.2.0) Mean Stack application which uses Angular2, Gulp, Express, Node, MongoDB (Mongoose) with Repository Pattern Business Layer
Stars: ✭ 201 (+617.86%)
Mutual labels:  gulp
Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (+714.29%)
Mutual labels:  gulp
Gulp Webpack Starter
Gulp Webpack Starter - fast static website builder. The starter uses gulp toolkit and webpack bundler. Download to get an awesome development experience!
Stars: ✭ 199 (+610.71%)
Mutual labels:  gulp
Gab Dissenter Extension
Dissenter.com Browser Extension source code
Stars: ✭ 252 (+800%)
Mutual labels:  gulp
Tmt Workflow
A web developer workflow used by WeChat team based on Gulp, with cross-platform supported and solutions prepared.
Stars: ✭ 2,167 (+7639.29%)
Mutual labels:  gulp
Ionic Starter Template
Reinventing the wheel, again! Sorry Ionic Team... but there are many newbies learning on Youtube!
Stars: ✭ 208 (+642.86%)
Mutual labels:  gulp
React Zhihu
这是一个模仿知乎界面的简单React demo。这个React demo能让你从零开始学习React,并逐渐掌握React。它包括了一个项目从零到项目完成的整个过程。
Stars: ✭ 219 (+682.14%)
Mutual labels:  gulp
sseeeedd
Seed for front-end culture :)
Stars: ✭ 15 (-46.43%)
Mutual labels:  gulp
feweekly
⭐ 前端周刊,让你在前端领域跟上时代的脚步,深度和广度不断精进
Stars: ✭ 34 (+21.43%)
Mutual labels:  gulp

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
    }
  }
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].