From 97618938241882c654843ea29af1ad5c54b4c88d Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Wed, 28 Mar 2012 10:54:43 -0600 Subject: [PATCH] include 'prefix' in cachified URLs in CSS, so cachify will properly intercept them --- scripts/compress-worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compress-worker.js b/scripts/compress-worker.js index 3bcb9084e..4ffb92333 100644 --- a/scripts/compress-worker.js +++ b/scripts/compress-worker.js @@ -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 +}); -- GitLab