Skip to content

Commit

Permalink
fix: configure favicon preset when using inlined preset (#699)
Browse files Browse the repository at this point in the history
* fix: configure favicon preset when using inlined preset

* chore: don't use 2023 when missing
  • Loading branch information
userquin committed Apr 5, 2024
1 parent 99ed12b commit 2cb6287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pwa-assets/config.ts
Expand Up @@ -75,7 +75,7 @@ export async function loadAssetsGeneratorContext(
imageResolver: () => readFile(imageFile),
imageName,
preset,
faviconPreset: userHeadLinkOptions?.preset,
faviconPreset: userHeadLinkOptions?.preset ?? pwaAssets.htmlPreset,
htmlLinks: { xhtml, includeId },
basePath: pwaAssets.integration?.baseUrl || ctx.viteConfig.base || '/',
resolveSvgName: userHeadLinkOptions?.resolveSvgName ?? (name => basename(name)),
Expand Down

0 comments on commit 2cb6287

Please sign in to comment.