statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.64k stars 236 forks source link

Feature request: Sass compiler using dart-sass #884

Open johncrim opened 4 years ago

johncrim commented 4 years ago

From the sass-lang.com web site: Dart Sass is the primary implementation of Sass, which means it gets new features before any other implementation

Dart Sass launched stable support for the new sass module system (@use + @forward ) and built-in modules several months ago. Angular now uses dart-sass primarily (but can fall back to node-sass if it's installed). Libsass still doesn't support these features.

With dart-sass now being the primary implementation, and new features being added to sass after a long quiet period, I think it would be ideal to be able to use dart-sass within Wyam.

My workaround right now is to run sass in parallel with Wyam. I'd be interested in working on this, but I don't know how contributions work given statiq's licensing.

I've tried a basic implementation of this, but ran into issues with Javascript modules when using the dart-sass js lib. A (more performant) alternative is to wrap the dart sass process, but that's probably a no-go due the virtual filesystem.