Skip to content

adapter-static with bundleStrategy: 'inline' does not inline assets linked via the %sveltekit.assets% alias #13285

Closed
@kran6a

Description

@kran6a

Describe the bug

When using adapter-static along with bundleStrategy: 'inline' assets referenced via %sveltekit.assets%/favicon.png are not base64-encoded and inlined.

Since bundleStrategy: inline is meant to build a whole site/web app into a single .html file, I would expect it to inline asset references.

Reproduction

Run npm run build and open build/app.html to see <link rel="icon" href="./favicon.png" />

https://stackblitz.com/edit/sveltejs-kit-template-default-nsyxgyko?file=src%2Froutes%2Fabout%2F%2Bpage.js

Logs

No response

System Info

Does not matter

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions