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

Getting static assets to appear in manifest.json #3

Closed
brycewray opened this issue Jul 23, 2021 · 1 comment
Closed

Getting static assets to appear in manifest.json #3

brycewray opened this issue Jul 23, 2021 · 1 comment

Comments

@brycewray
Copy link

brycewray commented Jul 23, 2021

This has been a great help. Thanks very much!

Is there anything about this setup that precludes Vite from listing static assets in the manifest.json file? Vite generates them in the assetsDir directory with hashing as it should but they're not listed in manifest.json, so I can't reference them in shortcodes as you did for JS and CSS. Have found this to be true so far for image files and font files.

@brycewray
Copy link
Author

Am closing this because, on testing with a vanilla create-vite repo not involving Eleventy, I reproduced the same problem. Looks like it's something in Vite 2.4, especially given this Vite issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant