rev-manifest-path

0.2.0 • Public • Published

rev-manifest-path

Get the cache busted path of an asset from a gulp-rev or gulp-rev-all manifest.

Installation

npm install --save rev-manifest-path

Usage

 
var helper = require('rev-manifest-path');
 
var assetPath = helper({
  prefix: '/assets',
  manifest: './build/rev-manifest.json'
});
 
console.log(assetPath('bundled.js')) //prints "/assets/bundled.fdfd034b.js"
console.log(assetPath('bundled.css')) //prints "/assets/bundled.d1a51643.css"
 

Readme

Keywords

none

Package Sidebar

Install

npm i rev-manifest-path

Weekly Downloads

514

Version

0.2.0

License

MIT

Last publish

Collaborators

  • jameslnewell