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

CSS not loaded in dist when in production #9

Open
arteteco opened this issue Mar 27, 2023 · 0 comments
Open

CSS not loaded in dist when in production #9

arteteco opened this issue Mar 27, 2023 · 0 comments

Comments

@arteteco
Copy link

Hi all,
after building and uploading to the server index.html did not load the css in the asset folder.

I solved it by manually editing the index.html and fixing the absolute path of the css, as in

<link rel="stylesheet" href="/assets/index.7ae1e269.css" />
<link rel="stylesheet" href="/assets/index.12c5fa68.css" />

Becoming

<link rel="stylesheet" href="assets/index.7ae1e269.css" />
<link rel="stylesheet" href="assets/index.12c5fa68.css" />

This is undoable at every update though, I'd recommend fixing it

Thank you!

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