Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}
this.webRoot = webRoot = resolvePath(webRoot || "./", referenceDir,
{ enforceRelative: true });
this.baseURI = baseURI || "/";

if(target) {
this.filepath = resolvePath(target, referenceDir, { enforceRelative: true });
Expand All @@ -27,8 +28,7 @@
if(value) {
this.valueTransform = value;
} else {
baseURI = baseURI || "/";
this.valueTransform = filepath => baseURI + path.relative(webRoot, filepath);
this.valueTransform = filepath => this.baseURI + path.relative(webRoot, filepath);

Check warning on line 31 in lib/manifest.js

View workflow job for this annotation

GitHub Actions / test (24.x)

This line has a length of 94. Maximum allowed is 90

Check warning on line 31 in lib/manifest.js

View workflow job for this annotation

GitHub Actions / test (latest)

This line has a length of 94. Maximum allowed is 90

Check warning on line 31 in lib/manifest.js

View workflow job for this annotation

GitHub Actions / test (20.x)

This line has a length of 94. Maximum allowed is 90
}
}

Expand Down