grunt-cache-bust-alt
Version:
An alternative version of Bust static assets from the cache using content hashing
20 lines (12 loc) • 549 B
JavaScript
;
var grunt = require('grunt');
module.exports = {
ignore: function(test) {
test.expect(3);
var markup = grunt.file.read('tmp/ignorePattern/ignorePattern.html');
test.ok(markup.match(/assets\/toBeIgnoredCSS(?!\.[a-z0-9]{16})\.css"/), 'testing toBeIgnoredCSS');
test.ok(markup.match(/assets\/toBeIgnoredJPG(?!\.[a-z0-9]{16})\.jpg"/), 'testing toBeIgnoredJPG');
test.ok(markup.match(/assets\/toBeIgnoredJS(?!\.[a-z0-9]{16})\.js"/), 'testing toBeIgnoredJS');
test.done();
}
};