Add leading / to original's url
This commit is contained in:
parent
eda3a19b38
commit
883fb2177e
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user