-
Notifications
You must be signed in to change notification settings - Fork 122
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
Move static assets to web-common
#1814
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it still also have local and admin specific assets as well? It would be nice to be able to decouple those.
Also, just another question, is there an NPM package for Inter that we could use so we don't need to copy them into the repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving since my questions above can be resolved later if necessary. This looks good
Moving my Slack question to @hamilton here – Thoughts on Benjamin's fonts idea? I found this Inter NPM package, but haven't found anything yet for MD IO. |
@hamilton mentioned that we're using the "tabular numbers" OpenType feature. I found that fontsource has quite limited OpenType support and does not offer tabular numbers. I think I'll leave the Inter files in the repo and we can continue this research another time. Another idea is to use the Inter distribution on Cloudflare's CDN. |
Maybe there's a creative workaround, but otherwise not until this SvelteKit issue is solved. Given we still have the fonts in the repository (see comment above), we can either:
I feel option 2 (current approach) is best until we get the fonts out of the repo. @begelundmuller thoughts or merge? |
Makes sense – let's do the current approach until the fonts are removed. Merge! |
* Move static assets to `web-common` * Delete `web-local/static` * Fix prettier
For
web-admin
to leverage our static assets (currently, our fonts & favicon), I've moved them fromweb-local/static
intoweb-common/static
and configured our SvelteKit projects,web-local
andweb-admin
, to read theweb-common/static
directory.I looked into keeping
robots.txt
in a separateweb-admin/static
folder, but SvelteKit does not yet support multiple static directories.Part of #1780.