Skip to content

Commit 0ea2cc1

Browse files
authored
WebCompiler for scss files (#2)
1 parent ca7c6e5 commit 0ea2cc1

File tree

12 files changed

+371
-77
lines changed

12 files changed

+371
-77
lines changed

.config/dotnet-tools.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"excubo.webcompiler": {
6+
"version": "2.7.14",
7+
"commands": [
8+
"webcompiler"
9+
]
10+
}
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"excubo.webcompiler": {
6+
"version": "2.7.14",
7+
"commands": [
8+
"webcompiler"
9+
]
10+
}
11+
}
12+
}

CodeBeam.MudExtensions/CodeBeam.MudExtensions.csproj

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,28 @@
2525
<PackageReference Include="MudBlazor" Version="6.0.16" />
2626
</ItemGroup>
2727

28+
<Target Name="ToolRestore" BeforeTargets="PreBuildEvent">
29+
<Exec Command="dotnet tool restore" StandardOutputImportance="high" />
30+
</Target>
31+
32+
<Target Name="PreBuild" AfterTargets="ToolRestore">
33+
<Exec Command="dotnet tool run webcompiler -r Styles/MudExtensions.scss -c excubowebcompiler.json" StandardOutputImportance="high" />
34+
</Target>
35+
2836
<ItemGroup>
2937
<None Include="..\..\..\..\Desktop\Yazılım - Tasarım\CodeBeam\CodeBeam Purple.jpg">
3038
<Pack>True</Pack>
3139
<PackagePath>\</PackagePath>
3240
</None>
3341
</ItemGroup>
3442

43+
<ItemGroup>
44+
<Content Remove="compilerconfig.json" />
45+
<Content Remove="excubowebcompiler.json" />
46+
</ItemGroup>
47+
48+
<ItemGroup>
49+
<Folder Include="wwwroot\" />
50+
</ItemGroup>
51+
3552
</Project>

0 commit comments

Comments
 (0)