Description
This issue has been moved from a ticket on Developer Community.
[severity:It bothers me. A fix would be nice]
When using dotnet watch run
, hot reload does not work for scoped css files that have recently been added.
Every time I make a change in the scoped css file, the console tells me that "Hot reload of scoped css succeeded", but when inspecting in Chrome I loose all the styling that is in that css file. I have to rebuild (Ctrl+R) to get the styling back.
The element label/id [b-owbhi4vrwm] stays the same, but the problem seems to be that all the styling of the scoped css file disappears from the generated css file {ProjectName}.styles.css?nonce={some_kind_of_id}.
It seems like this appears whenever I add a new scoped css file. After restarting Visual Studio (Version 17.5.0 Preview 6.0) and restarting console with dotnet watch run
(sdk 7.0.200-preview.22628.1) it seems to work again.
Original Comments
(no comments)
Original Solutions
(no solutions)