hironichu / denosass

DenoSass is a complete nearly fully featured Sass compiler for Deno and Browser
https://deno.land/x/denosass
MIT License
44 stars 3 forks source link

.sass format support #3

Open oscarotero opened 2 years ago

oscarotero commented 2 years ago

Hi. I just added your plugin to Lume and will be available in the next version. I notice that it fails on compile .sass files but works fine with .scss, so my question is whether .sass format is supported.

hironichu commented 2 years ago

That is a limitation of Grass https://github.com/connorskees/grass basically all these features are missing

indented syntax
@forward and more complex uses of @use
@at-root and @import media queries
@media query merging
/ as a separator in color functions, e.g. rgba(255, 255, 255 / 0)
Infinity and -Infinity
builtin meta function `keywords`

I have been looking into using another library made from Rust for that, or even writing my own in Typescript (i dont have time for this lol)

There is also https://github.com/kaj/rsass , however i need to change the entire FS inside so that I can use typescript function instead.. otherwise I can't compile it to WebAssembly

oscarotero commented 2 years ago

Ok, no problem. I think .scss is a more popular format than .sass so it's enough for now. I hope they implement the other missing features at some time. Thanks!

connorskees commented 1 year ago

grass has added support for the indented syntax in version 0.12.0. Upgrading to that version should allow you to close out this issue.

hironichu commented 1 year ago

Neat! I'll look into that later this week. Thanks