Skip to content

Commit b8ad295

Browse files
committed
Make the baseURI available on the manifest
1 parent 1a40eb5 commit b8ad295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/manifest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ exports.Manifest = class Manifest {
1111
}
1212
this.webRoot = webRoot = resolvePath(webRoot || "./", referenceDir,
1313
{ enforceRelative: true });
14+
this.baseURI = baseURI || "/";
1415

1516
if(target) {
1617
this.filepath = resolvePath(target, referenceDir, { enforceRelative: true });
@@ -26,8 +27,7 @@ exports.Manifest = class Manifest {
2627
if(value) {
2728
this.valueTransform = value;
2829
} else {
29-
baseURI = baseURI || "/";
30-
this.valueTransform = filepath => baseURI + path.relative(webRoot, filepath);
30+
this.valueTransform = filepath => this.baseURI + path.relative(webRoot, filepath);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)