Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
maddyblue opened this issue Sep 21, 2016 · 3 comments
Closed

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

maddyblue opened this issue Sep 21, 2016 · 3 comments

Comments

@maddyblue
Copy link

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?

@gaearon
Copy link
Contributor

gaearon commented Sep 22, 2016

This is a duplicate of #558, please track it instead. I expect to have a solution to it soon.

@gaearon
Copy link
Contributor

gaearon commented Sep 22, 2016

I drafted a proposal to solve this in #703. Unless we find some fatal flaws, it should come out in 0.5.0. Let me know what you think!

@gaearon
Copy link
Contributor

gaearon commented Sep 23, 2016

This is now supported in 0.5.0.

Read about using the new public folder.

See also migration instructions and breaking changes in 0.5.0.

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants