Skip to content

How to add static json file to index.html? #697

Closed
@maddyblue

Description

@maddyblue

Using 0.4.2, I'd like to include a manifest.json file (for add-to-homescreen). So in index.html I add:

<link rel="manifest" href="/src/manifest.json">

And I create a src/manifest.json file. Everything compiles, but the generated HTML has:

<link rel="manifest" href="[object Object]">

Some investigation shows that this is because it has parsed the JSON file instead of converted it into a static asset like it does for PNGs. How can I force it to just treat it like a static file with no fancy processing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions