LibSassHost icon indicating copy to clipboard operation
LibSassHost copied to clipboard

Sass Modules Support

Open HybridSolutions opened this issue 3 years ago • 7 comments

Hi,

does LibSassHost support Sass Modules?

@use 'sass:math';

Thanks!

HybridSolutions avatar Jul 09 '21 10:07 HybridSolutions

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.

Taritsyn avatar Jul 09 '21 10:07 Taritsyn

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 :(

HybridSolutions avatar Jul 09 '21 11:07 HybridSolutions

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.

Taritsyn avatar Jul 09 '21 15:07 Taritsyn

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.

HybridSolutions avatar Jul 09 '21 16:07 HybridSolutions

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 avatar Jul 09 '21 17:07 Taritsyn

Dart Sass Host 1.0.0 Preview 1 has been released.

Taritsyn avatar Jul 22 '21 18:07 Taritsyn

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

HybridSolutions avatar Jul 23 '21 13:07 HybridSolutions

Hello!

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

Taritsyn avatar Dec 19 '22 17:12 Taritsyn