Taritsyn / LibSassHost

.NET wrapper around the LibSass library with the ability to support a virtual file system.
Apache License 2.0
82 stars 11 forks source link

Sass Modules Support #48

Closed HybridSolutions closed 1 year ago

HybridSolutions commented 3 years ago

Hi,

does LibSassHost support Sass Modules?

@use 'sass:math';

Thanks!

Taritsyn commented 3 years ago

Hello!

At the moment, the original library does not support modules and is considered deprecated. I also recommend reading the “LibSass is Deprecated” article.

Keep an eye on the Dart Sass Host project for now. I plan to make a preview release of the library within a month.

HybridSolutions commented 3 years ago

Hello!

At the moment, the original library does not support modules and is considered deprecated. I also recommend reading the “LibSass is Deprecated” article.

Keep an eye on the Dart Sass Host project for now. I plan to make a preview release of the library within a month.

Will you support Sass modules then? Also, any chance of supporting compilation at runtime for .net 5 web projects like LigerShark.WebOptimizer.Sass Project does? It would be so awesome! LigerShark works very well but unfortunately does not support Sass modules as well :(

Taritsyn commented 3 years ago

Will you support Sass modules then?

DartSassHost library is based on the Node.js-version of Dart Sass and accordingly supports modules.

Also, any chance of supporting compilation at runtime for .net 5 web projects like LigerShark.WebOptimizer.Sass Project does?

No. DartSassHost, as well as the LibSassHost, is a general-purpose library. But nothing prevents you from implementing such functionality yourself.

HybridSolutions commented 3 years ago

Will you support Sass modules then?

DartSassHost library is based on the Node.js-version of Dart Sass and accordingly supports modules.

Also, any chance of supporting compilation at runtime for .net 5 web projects like LigerShark.WebOptimizer.Sass Project does?

No. DartSassHost, as well as the LibSassHost, is a general-purpose library. But nothing prevents you from implementing such functionality yourself.

Can I use Dart Sass right now for tests or it's still not ready? Went there but didn't quite understand how to setup it up.

Taritsyn commented 3 years ago

Can I use Dart Sass right now for tests or it's still not ready?

It's not ready yet. When I make a preview release, I will let you know.

Taritsyn commented 3 years ago

Dart Sass Host 1.0.0 Preview 1 has been released.

HybridSolutions commented 3 years ago

Wow, really happy with this release. Going to test it ASAP! :) Thanks!

Taritsyn commented 1 year ago

Hello!

First stable release of the Dart Sass Host was released yesterday.