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

Build output doesn't work locally by default (href <link> are absolute) #5

Closed
Stijn-B opened this issue Jul 26, 2022 · 1 comment
Closed

Comments

@Stijn-B
Copy link

Stijn-B commented Jul 26, 2022

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)

@Stijn-B Stijn-B changed the title Build output doesn't work locally by default (source file <link> are broken) Build output doesn't work locally by default (href <link> are absolute) Jul 26, 2022
@Stijn-B
Copy link
Author

Stijn-B commented Jul 26, 2022

Is probably more related to elderjs than this template specifically so I moved the issue there: Elderjs/elderjs#248 (comment)

@Stijn-B Stijn-B closed this as completed Jul 26, 2022
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