![]() |
VOOZH | about |
dotnet tool install --global DartSassBuilder-Tool --version 1.1.0
dotnet new tool-manifestif you are setting up this repo
dotnet tool install --local DartSassBuilder-Tool --version 1.1.0
#tool dotnet:?package=DartSassBuilder-Tool&version=1.1.0
nuke :add-package DartSassBuilder-Tool --version 1.1.0
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'
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 7,317 | 2/25/2024 |
| 1.0.0 | 1,703 | 3/21/2023 |
| 0.4.0-beta | 757 | 3/12/2023 |
| 0.3.0-beta | 843 | 3/29/2022 |
| 0.2.2-beta | 689 | 3/12/2022 |
| 0.2.1-beta | 673 | 11/15/2021 |
| 0.2.0-beta | 769 | 11/13/2021 |
| 0.1.3-beta | 762 | 10/28/2021 |