The href attribute of <link> tags is an absolute url like href=/path/to/file. As a result those files aren't loaded when opening the build result (public/index.html) locally during development. This is fixed by making the urls relative like href=./path/to/file.
I don't know if making the urls relative during building would lead to unwanted effects in production. If not, it might be a nice quality of life improvent; you can check locally whether your build output behaves as expected.
(Personally, when opening the build output, at first I thought I did something wrong because the css styling didn't load but it was just this detail)
The href attribute of
<link>
tags is an absolute url likehref=/path/to/file
. As a result those files aren't loaded when opening the build result (public/index.html
) locally during development. This is fixed by making the urls relative likehref=./path/to/file
.I don't know if making the urls relative during building would lead to unwanted effects in production. If not, it might be a nice quality of life improvent; you can check locally whether your build output behaves as expected. (Personally, when opening the build output, at first I thought I did something wrong because the css styling didn't load but it was just this detail)