There used to be an 'assetsService' that we could use to load css on runtime. Is there an equivalent for that on v14?
a
Anders Bjerner
08/17/2024, 7:49 PM
Nope. Prior to 14.2, Umbraco loaded a
user-defined.css
, and the idea was that you could overwrite this with your custom CSS. But it didn't really work with Umbraco's Razor Class Library, which is why it was removed.
I tried asking a bit about it via a comment to the PR that removed the
As for the PR that I linked to earlier, it's already merged and closed, and may not get any further activity. So might be better to create a new issue about loading custom CSS files.