xStatic-for-Umbraco
xStatic-for-Umbraco copied to clipboard
Link href values to .CSS files not generating correctly
Hi there!
While I'm able to use xStatic to create a static version of my site with all the assets, the <head>
elements of each page are missing the href
values for the .CSS files. All the .CSS files have been copied across as expected.
The links to the .CSS files are created in Umbraco using SmidgeHelper.
Original
@{
SmidgeHelper.RequiresCss("~/clean-assets/css/styles.css");
}
<head>
@await SmidgeHelper.CssHereAsync(debug: false)
</head>
xStatic
<!-- Core theme CSS (includes Bootstrap)-->
<link href="/sc/0c03902b.css.v1" rel="stylesheet">
This may be a case of me not having implemented (any) transformers, or any other functionality of xStatic.
Unsure if this is an issue and more just me missing something, but let me know how I can set the links correctly.
Thank you so much for making this package, it's HUGELY valuable - hope to get to know it better to be able to support it in future!
Rich
System info:
Category | Data |
---|---|
Server OS | Microsoft Windows 10.0.22621 |
Server Framework | .NET 6.0.24 |
Default Language | en-US |
Umbraco Version | 10.7.0 |
Current Culture | en-US |
Current UI Culture | en-US |
Current Webserver | IIS |
Models Builder Mode | SourceCodeManual |
Debug Mode | True |
Database Provider | Microsoft.Data.SqlClient |
Current Server Role | Single |
Browser | Edge-chromium 118.0.2088.61 |
Browser OS | Win32 |