I use postcss to make a theme. But for the convenience of users, useResourceCacheWhen = "always" is used in example config, so that user do not need to reley on npm.
But when users set a baseURL with subdomain, such as “https://example.com/test/”, an error will occur like Error building site: POSTCSS: failed to transform "css/eureka.css" (text/css): resource "css/test/css/eureka.css_fingerprint" not found in file cache. Obviously, Hugo uses the subdomain in baseURL as the path to find the cache.
So is there a way that users can use the cache and baseURL subdomains normally without special processing? Because not all users are willing to install the packages required by Hugo pipes. Maybe Hugo need to treat subdomains in baseURL differently?
Never reference assets in theme templates with a forward slash / in the beginning of the URL.
In a project with a subdomain as the baseURL or a subdirectory the forward slash will always point to the host root and therefore these assets will be 404 when the project is published.
And I also observe the output of this line. I use a different baseURL without subdomains and the generated html of that line is /css/eureka.min.css in href