Add leading / to original's url

This commit is contained in:
Brandon Frohs 2014-08-03 23:46:06 -04:00
parent eda3a19b38
commit 883fb2177e

View File

@ -80,7 +80,7 @@ exports.minify = function(files, options) {
: fs.readFileSync(file, "utf8"); : fs.readFileSync(file, "utf8");
if (options.prefix !== null) { if (options.prefix !== null) {
file = file.replace(/^\/+/, "").split(/\/+/).slice(options.prefix).join("/"); file = '/' + file.replace(/^\/+/, "").split(/\/+/).slice(options.prefix).join("/");
} }
sourcesContent[file] = code; sourcesContent[file] = code;