mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
style: lint
This commit is contained in:
parent
08c9867ea6
commit
0fbcb2495f
1 changed files with 6 additions and 4 deletions
|
@ -333,12 +333,14 @@ async function emitOptimizedImages(
|
|||
globalThis.astroAsset.referencedImages.add(fsPath);
|
||||
}
|
||||
|
||||
const pathToImg = prependForwardSlash(path.relative(
|
||||
const pathToImg = prependForwardSlash(
|
||||
path.relative(
|
||||
ctx.astroConfig.root.pathname,
|
||||
path.join(path.dirname(ctx.filePath), node.attributes.src)
|
||||
));
|
||||
path.join(path.dirname(ctx.filePath), node.attributes.src),
|
||||
),
|
||||
);
|
||||
node.attributes[attributeName] = { ...src, fsPath };
|
||||
node.attributes.src = pathToImg;
|
||||
node.attributes.src = pathToImg;
|
||||
}
|
||||
} else {
|
||||
throw new MarkdocError({
|
||||
|
|
Loading…
Add table
Reference in a new issue