AspNetCore.SassCompiler
1.0.1
See the version list below for details.
dotnet add package AspNetCore.SassCompiler --version 1.0.1
NuGet\Install-Package AspNetCore.SassCompiler -Version 1.0.1
<PackageReference Include="AspNetCore.SassCompiler" Version="1.0.1" />
paket add AspNetCore.SassCompiler --version 1.0.1
#r "nuget: AspNetCore.SassCompiler, 1.0.1"
// Install AspNetCore.SassCompiler as a Cake Addin
#addin nuget:?package=AspNetCore.SassCompiler&version=1.0.1
// Install AspNetCore.SassCompiler as a Cake Tool
#tool nuget:?package=AspNetCore.SassCompiler&version=1.0.1
AspNetCore.SassCompiler
Sass Compiler Library for .NET Core 3.x/5.x. without node.
Installation
The installation of this package is quite simple, you can install this package using NuGet with the following command:
# Package Manager
PM> Install-Package AspNetCore.SassCompiler
# .NET CLI
dotnet add package AspNetCore.SassCompiler
Configuration
After adding the package, the Sass styles from the SourceFolder (defaults to: Styles) will automatically be compiled into .css
files in the TargetFolder (defaults to: wwwroot\css) on build.
You can also adjust the default (--style=compressed
) dart-sass Arguments in the appsettings.json.
To adjust any of the default configuration, please add one or more of the following settings to the appsettings.json:
{
"SassCompiler": {
"SourceFolder": "Styles",
"TargetFolder": "wwwroot\\css",
"Arguments": "--style=compressed"
}
}
Sass watcher
To use the Sass watcher in your project, you must add the following code to your startup.cs:
public void ConfigureServices(IServiceCollection services)
{
#if DEBUG
services.AddSassCompiler();
#endif
}
I recommend adding the #if DEBUG
statement to only use a watcher during debug mode.
Examples
As an example, a configured version of a .NET 5.0 project is added in the /Samples folder. Please see the link below for quick access
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.Options (>= 3.1.0)
-
net5.0
- Microsoft.Extensions.Options (>= 3.1.0)
NuGet packages (18)
Showing the top 5 NuGet packages that depend on AspNetCore.SassCompiler:
Package | Downloads |
---|---|
JJMasterData.Web
JJMasterData is a codeless CRUD Generator from database metadata. This package contains the Data Dictionary Razor Class Library with all necessary packages. |
|
Enter.Ui
Package Description |
|
ThePensionsRegulator.GovUk.Frontend
Based on the GOV.UK Design System and GovUk.Frontend.AspNetCore. Adds extra features and components. |
|
ThePensionsRegulator.GovUk.Frontend.Umbraco
GOV.UK Design System components implemented using the block list editor in Umbraco, and classes used to build applications based on these components. |
|
Nowy.BlazorUI.Layout
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on AspNetCore.SassCompiler:
Repository | Stars |
---|---|
dotnetcore/BootstrapBlazor
A set of enterprise-class UI components based on Bootstrap and Blazor
|
Version | Downloads | Last updated |
---|---|---|
1.75.0 | 4,581 | 4/12/2024 |
1.74.1 | 4,679 | 4/4/2024 |
1.72.0 | 14,421 | 3/14/2024 |
1.71.1.1 | 8,408 | 3/1/2024 |
1.71.1 | 7,385 | 2/24/2024 |
1.71.0 | 2,973 | 2/16/2024 |
1.70.0 | 17,481 | 1/18/2024 |
1.69.7 | 10,904 | 1/3/2024 |
1.69.5 | 54,669 | 10/26/2023 |
1.69.3 | 10,286 | 10/12/2023 |
1.69.2 | 746 | 10/11/2023 |
1.69.1 | 960 | 10/10/2023 |
1.68.0 | 12,364 | 9/21/2023 |
1.67.0 | 2,443 | 9/15/2023 |
1.66.0 | 20,162 | 8/18/2023 |
1.64.2 | 10,786 | 8/1/2023 |
1.64.1 | 2,449 | 7/22/2023 |
1.64.0 | 3,874 | 7/20/2023 |
1.63.6 | 41,179 | 6/22/2023 |
1.63.5 | 4,656 | 6/21/2023 |
1.63.3 | 6,554 | 6/12/2023 |
1.63.2 | 639 | 6/8/2023 |
1.62.1 | 37,296 | 4/26/2023 |
1.61.0 | 13,832 | 4/7/2023 |
1.60.0 | 3,838 | 3/25/2023 |
1.59.3 | 3,293 | 3/16/2023 |
1.58.1 | 27,308 | 2/15/2023 |
1.58.0 | 6,243 | 2/1/2023 |
1.57.1 | 17,193 | 12/20/2022 |
1.56.2 | 1,989 | 12/9/2022 |
1.56.1 | 7,356 | 11/21/2022 |
1.55.0 | 15,068 | 9/22/2022 |
1.54.9 | 2,720 | 9/8/2022 |
1.54.8 | 2,043 | 9/1/2022 |
1.54.6 | 719 | 8/30/2022 |
1.54.5.1 | 3,724 | 8/22/2022 |
1.54.5 | 1,634 | 8/21/2022 |
1.54.4.1 | 2,616 | 8/16/2022 |
1.54.4 | 1,106 | 8/11/2022 |
1.54.3 | 2,137 | 8/5/2022 |
1.54.1 | 933 | 8/3/2022 |
1.54.0 | 6,525 | 7/23/2022 |
1.53.0 | 8,821 | 7/1/2022 |
1.52.3 | 2,918 | 6/9/2022 |
1.52.2 | 1,531 | 6/3/2022 |
1.52.1.2 | 2,340 | 5/26/2022 |
1.52.1.1 | 1,199 | 5/23/2022 |
1.52.1 | 1,929 | 5/21/2022 |
1.52.0 | 579 | 5/20/2022 |
1.51.0.4 | 1,455 | 5/9/2022 |
1.51.0.3 | 687 | 5/5/2022 |
1.51.0.2 | 775 | 5/3/2022 |
1.51.0.1 | 6,219 | 5/2/2022 |
1.51.0 | 13,497 | 4/26/2022 |
1.50.1 | 912 | 4/19/2022 |
1.50.0.1 | 1,309 | 4/11/2022 |
1.50.0 | 1,581 | 4/7/2022 |
1.49.11 | 557 | 4/6/2022 |
1.49.9 | 4,963 | 2/25/2022 |
1.49.8 | 948 | 2/19/2022 |
1.49.7 | 2,617 | 2/3/2022 |
1.49.4 | 1,124 | 2/1/2022 |
1.49.0 | 1,108 | 1/19/2022 |
1.48.0 | 650 | 1/13/2022 |
1.47.0 | 938 | 1/10/2022 |
1.45.2 | 2,886 | 12/31/2021 |
1.45.1 | 1,083 | 12/21/2021 |
1.45.0.1 | 340 | 12/19/2021 |
1.45.0 | 879 | 12/11/2021 |
1.44.0.1 | 406 | 12/10/2021 |
1.43.5 | 3,019 | 11/25/2021 |
1.43.4 | 1,125 | 10/27/2021 |
1.43.3 | 520 | 10/22/2021 |
1.43.2 | 632 | 10/14/2021 |
1.43.1 | 596 | 10/6/2021 |
1.42.1.1 | 567 | 9/29/2021 |
1.42.1 | 464 | 9/22/2021 |
1.42.0 | 419 | 9/21/2021 |
1.41.1 | 422 | 9/17/2021 |
1.41.0 | 394 | 9/15/2021 |
1.40.0 | 346 | 9/14/2021 |
1.39.2 | 478 | 9/10/2021 |
1.39.0 | 450 | 9/9/2021 |
1.0.4 | 2,186 | 8/12/2021 |
1.0.3 | 467 | 6/22/2021 |
1.0.2 | 489 | 6/17/2021 |
1.0.1 | 415 | 6/15/2021 |
1.0.0 | 407 | 6/14/2021 |
0.1.0 | 598 | 6/10/2021 |