Skip to content

Commit 82c7f0b

Browse files
committed
Code review
1 parent 25ac339 commit 82c7f0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BlazorWebView/src/SharedSource/StaticContentHotReloadManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ private static (string AssemblyName, string RelativePath) GetAssemblyNameAndRela
9090
var relativePath = match.Groups["RelativePath"].Value;
9191

9292
// Remove the fingerprint from scoped CSS bundles, since CSS hot reload will send new content without the fingerprint.
93-
// LibraryName.<fingerprint>.bundle.scp.css -> LibraryName.bundle.scp.css
93+
// The relative path for *.bundle.scp.css is just the file name, since they are always directly in the assembly's content directory.
94+
// Example: LibraryName.<fingerprint>.bundle.scp.css -> LibraryName.bundle.scp.css
9495
if (relativePath.StartsWith($"{assemblyName}.", StringComparison.Ordinal) && relativePath.EndsWith(".bundle.scp.css", StringComparison.Ordinal))
9596
{
9697
relativePath = $"{assemblyName}.bundle.scp.css";

0 commit comments

Comments
 (0)