Skip to content

Commit 10a60e0

Browse files
authored
Build: Fix for missing MudBlazor.min.css in SassCompiler (#10643)
1 parent f49eae0 commit 10a60e0

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/MudBlazor.Docs/MudBlazor.Docs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</PropertyGroup>
8484

8585
<ItemGroup>
86-
<PackageReference Include="AspNetCore.SassCompiler" Version="1.83.0">
86+
<PackageReference Include="AspNetCore.SassCompiler" Version="1.83.4">
8787
<PrivateAssets>all</PrivateAssets>
8888
</PackageReference>
8989
</ItemGroup>

src/MudBlazor/MudBlazor.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
</PropertyGroup>
8787

8888
<ItemGroup>
89-
<PackageReference Include="AspNetCore.SassCompiler" Version="1.83.0">
89+
<PackageReference Include="AspNetCore.SassCompiler" Version="1.83.4">
9090
<PrivateAssets>all</PrivateAssets>
9191
</PackageReference>
9292
<PackageReference Include="Microsoft.CodeAnalysis.ResxSourceGenerator" Version="3.11.0-beta1.24605.2">
@@ -115,6 +115,15 @@
115115
<TfmSpecificPackageFile Include="..\Directory.Build.targets" Pack="true" PackagePath="build\$(PackageId).targets" />
116116
</ItemGroup>
117117
</Target>
118+
119+
<!--Mitigation for https://github.com/koenvzeijl/AspNetCore.SassCompiler/issues/224-->
120+
<Target Name="AlwaysIncludeCss"
121+
BeforeTargets="Build;ResolveScopedCssInputs;BundleMinify;ResolveProjectStaticWebAssets" AfterTargets="Compile Sass">
122+
<ItemGroup>
123+
<Content Remove="wwwroot/MudBlazor.min.css" />
124+
<Content Include="wwwroot/MudBlazor.min.css" />
125+
</ItemGroup>
126+
</Target>
118127

119128
<!--Dont Include in build output-->
120129
<ItemGroup>

0 commit comments

Comments
 (0)