LibSassBuilder 1.6.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package LibSassBuilder --version 1.6.3
NuGet\Install-Package LibSassBuilder -Version 1.6.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LibSassBuilder" Version="1.6.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibSassBuilder --version 1.6.3
#r "nuget: LibSassBuilder, 1.6.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LibSassBuilder as a Cake Addin
#addin nuget:?package=LibSassBuilder&version=1.6.3

// Install LibSassBuilder as a Cake Tool
#tool nuget:?package=LibSassBuilder&version=1.6.3

LibSassBuilder

Inspired by Delegate.SassBuilder and LibSassHost

Build NuGet Package .NET Global Tool
Build Nuget .NET Tool

LibSassBuilder

Nuget Package

LibSassBuilder NuGet package adds a build task to compile Sass files to .css. It's compatible with both MSBuild (VS) and dotnet build.

No configuration is required, it will compile the files implicitly on project build.

  • Optionally provide arguments (see Options below):

<PropertyGroup>
  
  <LibSassOutputStyle>compressed</LibSassOutputStyle>
  <LibSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</LibSassOutputStyle>
  
  <LibSassOutputLevel>verbose</LibSassOutputLevel>
  
  <LibSassMessageLevel>High</LibSassMessageLevel>
</PropertyGroup>
  • Or take control of what files to process

<PropertyGroup>
  
  <EnableDefaultSassItems>false</EnableDefaultSassItems>  
</PropertyGroup>

<ItemGroup>
  
  <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>
  
  <LibSassBuilderArgs>directory "$(MSBuildProjectDirectory)"</LibSassBuilderArgs>
  
  <LibSassMessageLevel>High</LibSassMessageLevel>
</PropertyGroup>

.NET Global Tool

Install:

dotnet tool install --global LibSassBuilder-Tool

Use:

lsb [optional-path] [options]
lsb help
lsb help directory
lsb help files

Generic options

-l, --level      Specify the level of output (silent, default, verbose)

--outputstyle    Specify the style of output (compressed, condensed, nested, expanded)

Directory command (default)

Scans a directory recursively to generate .css files

-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.

Example:

lsb directory
lsb directory sources/styles -e node_modules
lsb directory sources/styles -e node_modules -l verbose

Files in the following directories are excluded by default:

  • bin
  • obj
  • logs
  • node_modules

Files command (default)

Processes the files given on the commandline

--help           Display this help screen.

--version        Display version information.

value pos. 0     File(s) to process.

Example:

lsb files sources/style/a.scss sources/vendor/b.scss
lsb files sources/style/a.scss sources/vendor/b.scss -l verbose

Requirements

LibSassBuilder can be installed on any project, however the underlying build tool requires .NET 5 installed on the machine.

Support

The support is largely dependant on LibSassHost

This tool contains the following supporting packages:

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

Package as nuget package

./package.ps1 -PackageDir 'C:/LocalPackages' -Version '1.4.0.1'
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on LibSassBuilder:

Package Downloads
PuyaUI.Blazor

PuyaUI components for Blazor. (Part of PuyaSaz platform)

Akinzekeel.BlazorGrid

A light weight data grid component for Blazor, focused on remote data. Supports sorting, virtualization, row-highlighting, JSON, gRPC and custom providers.

TopUI.Blazor.Bootstrap

Package Description

CoreSharp.Blazor

Collection of extensions, utilities and components for Blazor development.

BlazorSAS

Custom blazor components

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on LibSassBuilder:

Repository Stars
functionland/fx-files
You want to literally own your files? This is something won't happen on traditional cloud services in a lifetime. And this is something is going to happen in a glance with "Fx Files" app from now on. It is a file manager which stores everything on Fula blockchain network of Bloxes.
Version Downloads Last updated
3.0.0 120,377 11/11/2022
2.1.0 28,738 10/28/2022
2.0.2 58,060 7/28/2022
2.0.1 3,088,969 12/14/2021
2.0.0 18,691 11/11/2021
1.6.4 25,841 8/9/2021
1.6.3 21,018 6/20/2021
1.6.2 21,967 3/15/2021
1.6.1 7,002 2/25/2021
1.6.0 4,442 2/23/2021
1.5.0 3,988 2/19/2021
1.4.0 22,526 11/20/2020
1.3.0 4,146 11/19/2020
1.2.0 4,116 11/17/2020
1.1.0 4,037 11/16/2020
1.0.0 5,772 11/14/2020