We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a40eb5 commit b8ad295Copy full SHA for b8ad295
lib/manifest.js
@@ -11,6 +11,7 @@ exports.Manifest = class Manifest {
11
}
12
this.webRoot = webRoot = resolvePath(webRoot || "./", referenceDir,
13
{ enforceRelative: true });
14
+ this.baseURI = baseURI || "/";
15
16
if(target) {
17
this.filepath = resolvePath(target, referenceDir, { enforceRelative: true });
@@ -26,8 +27,7 @@ exports.Manifest = class Manifest {
26
27
if(value) {
28
this.valueTransform = value;
29
} else {
- baseURI = baseURI || "/";
30
- this.valueTransform = filepath => baseURI + path.relative(webRoot, filepath);
+ this.valueTransform = filepath => this.baseURI + path.relative(webRoot, filepath);
31
32
33
0 commit comments