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 820c240 commit 2d4c078Copy full SHA for 2d4c078
src/index.js
@@ -25,6 +25,10 @@ function toArrayBuffer(buf) {
25
26
export default function (file, output, options) {
27
function getFilePath(file) {
28
+ // remove public from path. assuming that public is the assets root
29
+ if (file.includes("public")) {
30
+ file = file.replace("public", "");
31
+ }
32
return `${options.root ?? "/"}${options.root ? path.basename(file) : path.normalize(file)}`;
33
}
34
0 commit comments