From 883fb2177e8c08434f77c67a37831cc153d44a8f Mon Sep 17 00:00:00 2001 From: Brandon Frohs Date: Sun, 3 Aug 2014 23:46:06 -0400 Subject: [PATCH] Add leading / to original's url --- tools/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/node.js b/tools/node.js index 21a202fb..6880204d 100644 --- a/tools/node.js +++ b/tools/node.js @@ -80,7 +80,7 @@ exports.minify = function(files, options) { : fs.readFileSync(file, "utf8"); if (options.prefix !== null) { - file = file.replace(/^\/+/, "").split(/\/+/).slice(options.prefix).join("/"); + file = '/' + file.replace(/^\/+/, "").split(/\/+/).slice(options.prefix).join("/"); } sourcesContent[file] = code;