Skip to content

Commit

Permalink
fix(build): Always include CssScopes.fs as CompileBefore
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Dec 8, 2024
1 parent 508af80 commit 44a516b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bolero.Build/Bolero.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<_BoleroApplyCssScopesBeforeTargets>ResolveScopedCssOutputs;CoreCompile</_BoleroApplyCssScopesBeforeTargets>
</PropertyGroup>

<ItemGroup Condition="Exists('$(_BoleroScopedCssSourceFile)')">
<!-- Include the generated CssScopes.fs at the beginning of the build -->
<ItemGroup>
<CompileBefore Include="$(_BoleroScopedCssSourceFile)" />
</ItemGroup>

Expand All @@ -40,7 +41,6 @@
Inputs="@(_BoleroScopedCss);$(MSBuildThisFileFullPath)" Outputs="$(_BoleroScopedCssSourceFile)">
<BoleroApplyCssScopes ScopedCss="@(_BoleroScopedCss)" ScopedCssSourceFile="$(_BoleroScopedCssSourceFile)" />
<ItemGroup>
<CompileBefore Include="$(_BoleroScopedCssSourceFile)" />
<_ScopedCss Include="@(_BoleroScopedCss)" />
</ItemGroup>
</Target>
Expand Down

0 comments on commit 44a516b

Please sign in to comment.