gulp-rev-fakemanifest

0.0.2 • Public • Published

gulp-rev-fakemanifest Build Status Coverage Status Dependency Status

Generate a fake manifest where v=k. Provide a workaround for https://github.com/sindresorhus/gulp-rev/issues/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

Package Sidebar

Install

npm i gulp-rev-fakemanifest

Weekly Downloads

338

Version

0.0.2

License

MIT

Unpacked Size

5.74 kB

Total Files

7

Last publish

Collaborators

  • zadkiel