Skip to content

CSS not loaded in dist when in production #9

@arteteco

Description

@arteteco

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions