koenvzeijl / AspNetCore.SassCompiler

Sass Compiler Library for .NET Core 3.1/5.x/6.x/7.x without node, using dart-sass as a compiler
https://www.nuget.org/packages/AspNetCore.SassCompiler/
MIT License
215 stars 26 forks source link

Allow specifying multiple sources and files for sources #165

Closed sleeuwen closed 9 months ago

sleeuwen commented 10 months ago

This PR increases the minimum supported version to .NET 6, and updates the samples accordingly (blazor samples have been regenerated from the latest .NET 8 templates as they've had quite some changes).

It also renames the "SourceFolder" and "TargetFolder" settings to "Source" and "Target" and allows them to specify a file in addition to a folder (this fixes #120). ("SourceFolder" and "TargetFolder" are still recognized for backwards compatibility)

Adds an extra config settings "Compilations" which is an array of "Source" and "Target" pairs. These work in addition to the global "Source"/"Target" (this fixes #57).

The sass watcher should also again be disabled by default for Razor Class Library projects (this fixes #118).

note: we might want to wait until sass 1.70 is released and introduce these changes in that version (and not in a v1.69.8).