Formatting options for static revisioned assets (gulp-rev): unicorn.css → unicorn[pre]d41d8cd98f[pre].css
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig init Jun 15, 2016
.gitattributes init Jun 15, 2016
.gitignore init Jun 15, 2016
.npmignore add .npmingore and update package.json to fix npm publish Jun 15, 2016
.travis.yml init Jun 15, 2016
index.js cleanup Jun 15, 2016
license init Jun 15, 2016
package.json 1.0.4 Jun 15, 2016 hook up Jun 15, 2016
test.js init Jun 15, 2016

gulp-rev-format Build Status | js-standard-style

Formatting options for static revisioned assets generated by gulp-rev or gulp-git-rev: unicorn.cssunicorn[pre]d41d8cd98f[pre].css

Make sure to set the files to never expire for this to have an effect.


$ npm install --save-dev gulp-rev-format


var gulp = require('gulp');
var rev = require('gulp-rev');
var revFormat = require('gulp-rev-format');

gulp.task('default', function () {
	return gulp.src('src/*.*')
            prefix: '.',
            suffix: '.cache',
            lastExt: false




Type: string Default: "-"

Prefix appended to Hash.


Type: string Default: ""

Suffix appended to Hash.


Type: boolean Default: false

Append formatted Hash just before last extension of a file.

(By default, gulp-rev and this plugin will append the formated Hash just before the first . of a filename)

If true, unicorn.ext1.ext2.css would become unicorn.ext1.ext2-<prefix>d41d8cd98f<suffix>.css

Note with default options, output is the same with gulp-rev: unicorn.cssunicorn-d41d8cd98f.css


Files passed must have passed through gulp-rev, so they would have file.revOrigPath and file.revHash added (read more).


  • gulp-rev's author and maintainers - For their awesome work on gulp-rev
  • @lukeed - For suggesting the solution for this task


MIT © Andrei Tamas