This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
Releases: johan-v-r/LibSassBuilder
Releases · johan-v-r/LibSassBuilder
.NET 7 Update
Support win-x86
Add support for win-x86
.NET 6 Update
Update LSB framework target to .NET 6
IDE Hidden Files
Bug fix to show incorrectly-hidden files in Rider.
Files were hidden because of VS bug fix #15 - which is now only applied when BuildingInsideVisualStudio
Directory Command Fix
Bug fix to check directory full name against excluded folders.
Thanks to @deanwiseman for providing fix!
MSBuild Optimization
MSBuild config added to build individual files rather than traversing the directory on every build.
Also includes the custom files list to watch to track sass files with dotnet watch
by default.
-
Optionally provide arguments (see Options below):
<PropertyGroup>
<!-- outputstyle option -->
<LibSassOutputStyle>compressed</LibSassOutputStyle>
<LibSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</LibSassOutputStyle>
<!-- level option -->
<LibSassOutputLevel>verbose</LibSassOutputLevel>
<!-- msbuild output level -->
<LibSassMessageLevel>High</LibSassMessageLevel>
</PropertyGroup>
-
Or take control of what files to process
<PropertyGroup>
<!-- take full-control -->
<EnableDefaultSassItems>false</EnableDefaultSassItems>
</PropertyGroup>
<ItemGroup>
<!-- add files manually -->
<SassFile Include="Vendor/**/*.scss" >
<SassFile Include="Styles/**/*.scss" Exclude="Styles/unused/**" />
</ItemGroup>
-
Or ignore all previous options (except for
<LibSassMessageLevel>
) and determine the arguments to the tool yourself
<PropertyGroup>
<!-- Take even more full-control -->
<LibSassBuilderArgs>directory "$(MSBuildProjectDirectory)"</LibSassBuilderArgs>
<!-- msbuild output level -->
<LibSassMessageLevel>High</LibSassMessageLevel>
</PropertyGroup>
Massive thanks to @JelleHissink 👍
Argument Options
Support for providing arguments:
Options
-e, --exclude (Default: bin obj logs node_modules) Specify explicit directories to exclude. Overrides the default.
--help Display this help screen.
--version Display version information.
value pos. 0 Directory in which to run. Defaults to current directory.
Nuget Package
Optionally provide arguments:
<PropertyGroup>
<LibSassBuilderArgs>.\Pages -e temp</LibSassBuilderArgs>
</PropertyGroup>
.NET Global Tool
Use:
lsb [optional-path] [options]
lsb --help
Platform Support
NuGet Package | .NET Global Tool |
---|---|
Added LibSassHost packages to support the following targets:
- LibSassHost.Native.win-x64
- LibSassHost.Native.linux-x64
- LibSassHost.Native.osx-x64