{"repo":"sindresorhus/gulp-rev","free":true,"listed":false,"github":"https://github.com/sindresorhus/gulp-rev","clone":"git clone https://github.com/sindresorhus/gulp-rev.git","description":"Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`","language":"JavaScript","stars":1536,"topics":["gulp-plugin","rev","javascript","hash","manifest","nodejs"],"license":"MIT","category":"dev-tools","readme_excerpt":"gulp-rev Static asset revisioning by appending content hash to filenames unicorn.css → unicorn-d41d8cd98f.css This project is feature complete. PRs adding new features will not be accepted. Make sure to set the files to never expire for this to have an effect. Install Usage API rev() rev.manifest(path?, options?) path Type: string \\ Default: 'rev-manifest.json' Manifest file path. options Type: object base Type: string \\ Default: process.cwd() Override the base of the manifest file. cwd Type: string \\ Default: process.cwd() Override the current working directory of the manifest file. merge Type: boolean \\ Default: false Merge existing manifest file. transformer Type: object \\ Default: JSON An object with parse and stringify methods. This can be used to provide a custom transformer instead of the default JSON for the manifest file. Original path Original file paths are stored at file.revOrigPath . This could come in handy for things like rewriting references to the assets. Asset hash The hash of each rev'd file is stored at file.revHash . You can use this for customizing the file renaming, or for building different manifest formats. Asset manifest An asset manifest, mapping the original paths to the revisioned paths, will be written to build/assets/rev-manifest.json : By default, rev-manifest.json will be replaced as a whole. To merge with an existing manifest, pass merge: true and the output destination (as base ) to rev.manifest() : You can optionally call rev.manifest('mani","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/gulp-rev/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}