From 67cae9a848c1ac0f120ff16639a24becf89db11a Mon Sep 17 00:00:00 2001 From: Evilebot Tnawi Date: Sun, 23 Apr 2017 22:15:34 +0300 Subject: [PATCH] chore: update comment (#515) --- lib/processCss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/processCss.js b/lib/processCss.js index 6a3ac1d2..fb2ad703 100644 --- a/lib/processCss.js +++ b/lib/processCss.js @@ -102,6 +102,7 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) { break; case "url": if (options.url && !/^#/.test(item.url) && loaderUtils.isUrlRequest(item.url, options.root)) { + // Don't remove quotes around url when contain space if (item.url.indexOf(" ") === -1) { item.stringType = ""; } @@ -110,7 +111,6 @@ var parserPlugin = postcss.plugin("css-loader-parser", function(options) { var url = item.url; item.url = "___CSS_LOADER_URL___" + urlItems.length + "___"; urlItems.push({ - // Add quotes aroung url when contain space url: url }); }