gulp-rev-all-revise
Version:
base on gulp-rev-append-all that replace "?rev=@@hash" with hash string and gulp-rev-append-all will not but append a hash string like "?v=xxx" to the end of ref in file.
21 lines (15 loc) • 564 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 dependencies in an html file using css url\(\) 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('css-url-index'))
});
callback();
});
};