Skip to content
Snippets Groups Projects
Commit 97618938 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

include 'prefix' in cachified URLs in CSS, so cachify will properly intercept them

parent d5634cfe
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ function compressResource(staticPath, name, files, cb) {
var static_root = path.join(__dirname, '..', 'resources/static/');
logger.info("cachify will look in " + static_root);
// Cachify only used in compress for CSS Images, so no asserts needed
cachify.setup({}, { root: static_root});
cachify.setup({}, { prefix: 'v', root: static_root });
function cachify_embedded (css_src) {
return css_src.replace(/url\s*\(['"](.*)\s*['"]\s*\)/g, function (str, url) {
......@@ -105,4 +105,4 @@ process.on('message', function(m) {
info: info
});
});
});
\ No newline at end of file
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment