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

Releases: johan-v-r/LibSassBuilder

.NET 7 Update

11 Nov 08:16
2e7ce18
Compare
Choose a tag to compare

Update LSB framework target to .NET 7

Support win-x86

28 Oct 09:43
Compare
Choose a tag to compare

Add support for win-x86

.NET 6 Update

11 Nov 14:14
Compare
Choose a tag to compare

Update LSB framework target to .NET 6

IDE Hidden Files

09 Aug 13:17
a84886f
Compare
Choose a tag to compare

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

20 Jun 16:42
a84886f
Compare
Choose a tag to compare

Bug fix to check directory full name against excluded folders.

Thanks to @deanwiseman for providing fix!

MSBuild Optimization

25 Feb 07:01
36cbd51
Compare
Choose a tag to compare

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

19 Feb 07:08
1728325
Compare
Choose a tag to compare

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

11 Jan 11:57
Compare
Choose a tag to compare
NuGet Package .NET Global Tool
Nuget .NET Tool

Added LibSassHost packages to support the following targets:

  • LibSassHost.Native.win-x64
  • LibSassHost.Native.linux-x64
  • LibSassHost.Native.osx-x64

Published .NET Global Tool