Skip to content

Commit

Permalink
Merge pull request #364 from fsbolero/add-css
Browse files Browse the repository at this point in the history
fix(ScopedCss): Include generated file even when unchanged
  • Loading branch information
Tarmil authored Nov 17, 2024
2 parents 743619c + 3fd4707 commit dde0223
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Bolero.Build/Bolero.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<_BoleroApplyCssScopesBeforeTargets>ResolveScopedCssOutputs;CoreCompile</_BoleroApplyCssScopesBeforeTargets>
</PropertyGroup>

<ItemGroup Condition="Exists('$(_BoleroScopedCssSourceFile)')">
<CompileBefore Include="$(_BoleroScopedCssSourceFile)" />
</ItemGroup>

<UsingTask AssemblyFile="$(BoleroTaskAssemblyPath)" TaskName="Bolero.Build.BoleroStripFSharpMetadata"
Condition="'$(BoleroStripAssemblies)' != 'False'" />
<UsingTask AssemblyFile="$(BoleroTaskAssemblyPath)" TaskName="Bolero.Build.BoleroApplyCssScopes" />
Expand All @@ -25,7 +29,7 @@
</Target>

<!-- Generate the CSS Scope identifier for *.bolero.css -->
<Target Name="_BoleroComputeCssScope" DependsOnTargets="$(_BoleroComputeCssScopeDependsOn)">
<Target Name="_BoleroComputeCssScope" DependsOnTargets="$(_BoleroComputeCssScopeDependsOn)" BeforeTargets="$(_BoleroApplyCssScopesBeforeTargets)">
<ComputeCssScope ScopedCssInput="@(BoleroScopedCss)" Targetname="$(TargetName)">
<Output TaskParameter="ScopedCss" ItemName="_BoleroScopedCss" />
</ComputeCssScope>
Expand Down

0 comments on commit dde0223

Please sign in to comment.