Skip to content

Commit f644b4b

Browse files
Copilotkirkone
andcommitted
Complete .NET 9 upgrade with working SASS compilation
Co-authored-by: kirkone <15778270+kirkone@users.noreply.github.com>
1 parent 1c2c7f4 commit f644b4b

3 files changed

Lines changed: 9 additions & 15 deletions

File tree

src/CZ.Azure.FileExchange/CZ.Azure.FileExchange.csproj

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,13 @@
1313
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.0" PrivateAssets="all" />
1414
</ItemGroup>
1515

16-
<!-- SASS options - Temporarily disabled due to compilation issues
17-
<PropertyGroup>
18-
<DartSassOutputStyle>compressed</DartSassOutputStyle>
19-
<DartSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</DartSassOutputStyle>
20-
<DartSassOutputLevel>verbose</DartSassOutputLevel>
21-
<DartSassMessageLevel>High</DartSassMessageLevel>
22-
</PropertyGroup>
23-
<ItemGroup>
24-
<SassFile Include="Client/**/*.scss" />
25-
</ItemGroup>
26-
27-
<Target Name="copy_sass_to_the_right_place" AfterTargets="DartSass_Build">
28-
<Copy SourceFiles="Client/styles/main.css" DestinationFolder="wwwroot/client/" />
16+
<!-- Custom SASS compilation using native sass command -->
17+
<Target Name="CompileSass" BeforeTargets="Build">
18+
<Exec Command="sass Client/styles/main.scss Client/styles/main.css --style=expanded"
19+
ContinueOnError="false"
20+
WorkingDirectory="$(MSBuildProjectDirectory)" />
21+
<Copy SourceFiles="$(MSBuildProjectDirectory)/Client/styles/main.css"
22+
DestinationFolder="$(MSBuildProjectDirectory)/wwwroot/client/" />
2923
</Target>
30-
-->
3124

3225
</Project>

src/CZ.Azure.FileExchange/Client/styles/main.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/CZ.Azure.FileExchange/Client/styles/main.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Structuring your Sass Projects
33
// https://itnext.io/structuring-your-sass-projects-c8d41fa55ed4
44

5-
// @use './vendors/cssgg';
5+
@use './vendors/cssgg';
66

77
@use './abstracts/variables';
88
@use './abstracts/mixins';

0 commit comments

Comments
 (0)