sindresorhus / gulp-rev

Static asset revisioning by appending content hash to filenames: `unicorn.css` → `unicorn-d41d8cd98f.css`
MIT License
1.54k stars 217 forks source link

Added options object that allows the user turn off the output file hash,... #70

Closed splars closed 10 years ago

splars commented 10 years ago

... and also include a version string in the filename.

Tests pass.

✓ should rev files ✓ should not rev files if hash is false ✓ should rev and version if version set ✓ should not rev but add version if version set and hash is false ✓ should build a rev manifest file ✓ should allow naming the manifest file ✓ should append to an existing rev manifest file ✓ should respect directories ✓ should store the hashes for later

9 passing (17ms)

sindresorhus commented 10 years ago

Sorry if we sound difficult, but we want to keep this plugin small and focused. I don't see these use-cases being worth adding options for when it's easy to achieve the same thing with a combination of plugins.

splars commented 10 years ago

Fair enough, no worries!