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

Fonts missing when building for production #14

Open
muety opened this issue Mar 3, 2020 · 5 comments
Open

Fonts missing when building for production #14

muety opened this issue Mar 3, 2020 · 5 comments

Comments

@muety
Copy link
Contributor

muety commented Mar 3, 2020

Everything works fine when using yarn serve (left in the screenshot). However, when trying to build a dist package with yarn build and serving it as static files, fonts don't seem to be loaded (right in the screenshot).

Screenshot from 2020-03-03 14-13-59

@muety muety mentioned this issue Mar 3, 2020
@jens-ox
Copy link
Owner

jens-ox commented Mar 3, 2020

This is likely caused by purgeCSS, I'll look into it later 😊

@muety
Copy link
Contributor Author

muety commented Mar 3, 2020

You're right. Problem occurs when doing NODE_ENV=production yarn build, but not for NODE_ENV=dev yarn build

@jens-ox
Copy link
Owner

jens-ox commented Mar 3, 2020

Also notice the ugly body margin enforced by the default user stylesheet in the second screenshot 😅
Implemented exactly the same yesterday in another project: jens-ox/metrics-graphics@b50f078

@muety muety mentioned this issue Mar 3, 2020
jens-ox added a commit that referenced this issue Apr 9, 2020
@jens-ox
Copy link
Owner

jens-ox commented Apr 9, 2020

Updated in 572f8dc, could you re-check?

@muety
Copy link
Contributor Author

muety commented Apr 10, 2020

Front page is fine now, but the activity chart still looks a bit distorted.
Screenshot from 2020-04-10 10-22-41

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

2 participants