I’ve been building my site only using hugo server -D so far, without any issues.
Yesterday I attempted at deploying my built page to my server, but the stylesheets aren’t being loaded correctly. Apparently, only the main.css is being loaded, the other stylesheets imported with @import are all throwing 404 exceptions.
I’ll mark the repository as public while we investigate the issue: https://github.com/YilianSource/ysweb
This repository contains the source files of the page.
I did set a baseUrl, as you can see in the config.json file.
Here a side note. If you don’t want to make things too complicated just ignore it
The @import will make CSS rather slow. This is relevant only if you have tons of CSS, of course. But you could automatically combine all CSS files like this (/layouts/partials/head.html):
Sweet, thanks about the heads-up about @import’s speed!
Unfortunately, now it attempts to load the styles from D:/css/main.css, and not from the relative path.
Obviously just when testing the built site, when running with hugo server -D on localhost it will find the files.