gulp-rev-append-opt
Version:
gulp-rev-append with the option of field name and md5 digest length.
21 lines (15 loc) • 561 B
JavaScript
var File = require('gulp-util').File;
var Buffer = require('buffer').Buffer;
module.exports = function() {
'use strict';
this.World = require('../support/world').World;
this.Given(/^I have declared absolute dependencies in an html file with revision tokens$/, function (callback) {
this.indexFile = new File({
cwd: 'test/fixtures/',
base: 'test/fixtures/static',
path: 'test/fixtures/static/absolute-path-index.html',
contents: new Buffer(this.htmlFileContents('absolute-path-index'))
});
callback();
});
};