denosass icon indicating copy to clipboard operation
denosass copied to clipboard

.sass format support

Open oscarotero opened this issue 2 years ago • 4 comments

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.

oscarotero avatar Feb 14 '22 22:02 oscarotero

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

hironichu avatar Feb 15 '22 08:02 hironichu

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!

oscarotero avatar Feb 15 '22 09:02 oscarotero

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.

connorskees avatar Jan 03 '23 23:01 connorskees

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

hironichu avatar Jan 04 '23 14:01 hironichu