From ed341242340678b49c131ad9466ba0028695e093 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Sat, 8 Aug 2015 22:11:28 +0200 Subject: [PATCH] Leave absolute paths and URLs as-is In other words, only process relative paths. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 284a944..ff9ef20 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ var isAbsolute = function(p) { var rebaseUrls = function(css, options) { return rework(css) .use(rework.url(function(url){ - if (isAbsolute(url) && validator.isURL(url)) { + if (isAbsolute(url) || validator.isURL(url)) { return url; } var absolutePath = path.join(options.currentDir, url)