![]() |
VOOZH | about |
dotnet add package DartSassBuilder --version 1.1.0
NuGet\Install-Package DartSassBuilder -Version 1.1.0
<PackageReference Include="DartSassBuilder" Version="1.1.0" />
<PackageVersion Include="DartSassBuilder" Version="1.1.0" />Directory.Packages.props
<PackageReference Include="DartSassBuilder" />Project file
paket add DartSassBuilder --version 1.1.0
#r "nuget: DartSassBuilder, 1.1.0"
#:package DartSassBuilder@1.1.0
#addin nuget:?package=DartSassBuilder&version=1.1.0Install as a Cake Addin
#tool nuget:?package=DartSassBuilder&version=1.1.0Install as a Cake Tool
A dart-compiled version of LibSassBuilder, using DartSassHost
| Build | NuGet Package | .NET Global Tool |
|---|---|---|
| 👁 Build |
👁 Nuget |
👁 .NET Tool |
DartSassBuilder 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.
<PropertyGroup>
<DartSassOutputStyle>compressed</DartSassOutputStyle>
<DartSassOutputStyle Condition="'$(Configuration)' == 'Debug'">expanded</DartSassOutputStyle>
<DartSassOutputLevel>verbose</DartSassOutputLevel>
<DartSassMessageLevel>High</DartSassMessageLevel>
</PropertyGroup>
<PropertyGroup>
<EnableDefaultSassItems>false</EnableDefaultSassItems>
</PropertyGroup>
<ItemGroup>
<SassFile Include="Vendor/**/*.scss" />
<SassFile Include="Styles/**/*.scss" Exclude="Styles/unused/**" />
</ItemGroup>
<DartSassMessageLevel>) and determine the arguments to the tool yourself<PropertyGroup>
<DartSassBuilderArgs>directory "$(MSBuildProjectDirectory)"</DartSassBuilderArgs>
<DartSassMessageLevel>High</DartSassMessageLevel>
</PropertyGroup>
Install:
dotnet tool install --global DartSassBuilder
Use:
dsb [optional-path] [options]
dsb help
dsb help directory
dsb help files
-l, --level Specify the level of output (silent, default, verbose)
--outputstyle Specify the style of output (compressed, compact, nested, expanded)
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:
dsb directory
dsb directory sources/styles -e node_modules
dsb directory sources/styles -e node_modules -l verbose
Files in the following directories are excluded by default:
binobjlogsnode_modulesProcesses the files given on the commandline
--help Display this help screen.
--version Display version information.
value pos. 0 File(s) to process.
Example:
dsb files sources/style/a.scss sources/vendor/b.scss
dsb files sources/style/a.scss sources/vendor/b.scss -l verbose
DartSassBuilder can be installed on any project, however the underlying build tool requires .NET 6 installed on the machine. (.NET 5 required with 0.1.x-beta)
The support is largely dependant on DartSassHost
This tool contains the following supporting packages:
./package.ps1 -PackageDir 'C:/LocalPackages' -Version '1.4.0.1'
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Showing the top 5 NuGet packages that depend on DartSassBuilder:
| Package | Downloads |
|---|---|
|
0xor1.Common.Client
Common classes I use in all of my projects for client side usage. |
|
|
BlazorSAS
Custom blazor components |
|
|
InsaShellRCL
Package Description |
|
|
Hopp.Portal.Client
MigFx Library for public use in Client extensions |
|
|
SocialGuard.YC
SocialGuard Plugin for YumeChan |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 1,037,490 | 2/25/2024 |
| 1.0.0 | 4,920,298 | 3/21/2023 |
| 0.4.0-beta | 1,135 | 3/12/2023 |
| 0.3.0-beta | 2,270 | 3/29/2022 |
| 0.2.2-beta | 1,475 | 3/12/2022 |
| 0.2.1-beta | 6,136 | 11/15/2021 |
| 0.2.0-beta | 901 | 11/13/2021 |
| 0.1.3-beta | 1,083 | 10/28/2021 |
| 0.1.2 | 1,550 | 10/8/2021 |
| 0.1.1 | 1,166 | 9/19/2021 |
| 0.1.0 | 1,349 | 9/19/2021 |