Skip to content

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

Description

@madelynnblue

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="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/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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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