Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Separate SassFilesToCompile items
Browse files Browse the repository at this point in the history
  • Loading branch information
johan-v-r committed Aug 9, 2021
1 parent 45dae68 commit 35dbf55
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package/LibSassBuilder.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>LibSassBuilder</id>
<version>1.6.3</version>
<version>1.6.4</version>
<title>LibSassBuilder</title>
<summary>Auto build task to compile .scss/.sass files to .css</summary>
<authors>Johan van Rensburg</authors>
Expand Down
10 changes: 5 additions & 5 deletions package/build/LibSassBuilder.props
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
</PropertyGroup>

<ItemGroup Condition="'$(EnableDefaultItems)' == 'true' And '$(EnableDefaultSassItems)' == 'true'">
<!-- add sass files that must be compiled (also gets tracked by VS) -->
<SassFile Include="**/*.scss" ExcludeFromSingleFile="true" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultSassExcludes);$(DefaultExcludesInProjectFolder);**/_*" />
<SassFile Include="**/*.sass" ExcludeFromSingleFile="true" Exclude="$(DefaultSassExcludes);$(DefaultExcludesInProjectFolder);**/_*" />
<!-- add all sass files -->
<SassFile Include="**/*.scss" ExcludeFromSingleFile="true" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultSassExcludes);$(DefaultExcludesInProjectFolder)" />
<SassFile Include="**/*.sass" ExcludeFromSingleFile="true" Exclude="$(DefaultSassExcludes);$(DefaultExcludesInProjectFolder)" />

<!-- add all other sass files to show up in VS -->
<None Condition="'$(BuildingInsideVisualStudio)'=='true'" Include="**/_*.scss;**/_*.sass" />
<!-- filter out variable files that don't get compiled -->
<SassFilesToCompile Include="@(SassFile)" Exclude="**/_*.scss;**/_*.sass"></SassFilesToCompile>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion package/build/LibSassBuilder.targets
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
BeforeTargets="BeforeBuild"
Condition="'$(_LibSassHashChanged)-$(LibSassShouldBuildBasedOnSassFiles)' == 'true-true' ">
<PropertyGroup>
<_SassFileList>@(SassFile->'&quot;%(FullPath)&quot;', ' ')</_SassFileList> <!-- all files, space seperated, surrounded with quotes -->
<_SassFileList>@(SassFilesToCompile->'&quot;%(FullPath)&quot;', ' ')</_SassFileList> <!-- all valid files, space seperated, surrounded with quotes -->
<LibSassBuilderArgs>files $(_SassFileList) --outputstyle $(LibSassOutputStyle) --level $(LibSassOutputLevel)</LibSassBuilderArgs>
</PropertyGroup>
<Message Text="Converted SassFile list to argument" Importance="$(LibSassMessageLevel)" />
Expand Down

0 comments on commit 35dbf55

Please sign in to comment.