Open DoctorGurke opened 1 year ago
Even with the full path (or relative path from /code
) doesn't work either, yet it will print something in console saying "updating stylesheet"
If you specify from the level under /code, it should work (from my experience):
https://github.com/apetavern/sbox-grubs/blob/main/code/UI/MainMenu/OptionsMenu/OptionsMenu.razor#L3
If you specify from the level under /code, it should work (from my experience):
https://github.com/apetavern/sbox-grubs/blob/main/code/UI/MainMenu/OptionsMenu/OptionsMenu.razor#L3
Pretty sure we were doing that before and it wasn't working properly. May have not had a starting /
though
Is this behaviour different between packaged and local addons?
Hello i have the same issue with Razor :
CSS auto update is broken when using @attribute [StyleSheet("gamemenu.scss")]
I have to use the @trundlr fix : @attribute [StyleSheet("/code/ui/menu/gamemenu/gamemenu.scss")]
Auto update work's well when using
public GameMenu()
{
Current = this;
StyleSheet.Load("ui/menu/gamemenu/gamemenu.scss");
}
Edit : same problem with @attribute [StyleSheet("gamemenu.razor.scss")]
Edit 2 : like anthonysharpy told me, just using @attribute [StyleSheet]
work fine for file named like gamemenu.razor.scss
and gamemenu.razor
Describe the bug
When I use the StyleSheetAttribute in razor panels with a relative path argument it won't hotload the stylesheet.
To Reproduce
Expected behavior
It should hotload the stylesheet
Media/Files
No response
Additional context
No response