aslafy-z / gulp-rev-fakemanifest

Fake rev manifest

Home Page:https://github.com/aslafy-z/gulp-rev-fakemanifest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-rev-fakemanifest Build Status Coverage Status Dependency Status

Generate a fake manifest where v=k. Provide a workaround for sindresorhus/gulp-rev#40

Installation

npm install gulp-rev-fakemanifest --save

Usage

const revFakeManifest = require('gulp-rev-fakemanifest');

(...).pipe(revFakeManifest(pth, opts).pipe(...)

Options are the same as gulp-rev-manifest: https://github.com/lukeed/gulp-rev-manifest#revmanifestpath-options

Example

return gulp.src('dist', { base: 'assets' })
  .pipe(isProd ? rev() : noop())
  .pipe(
    isProd
    ? rev.manifest({ base: 'assets' })
    : revFakeManifest({ base: 'assets' })
  )
  .pipe(gulp.dest('assets'));

TODO

  • More tests

About

Fake rev manifest

https://github.com/aslafy-z/gulp-rev-fakemanifest

License:MIT License


Languages

Language:JavaScript 100.0%