build-image icon indicating copy to clipboard operation
build-image copied to clipboard

Add the Dart Sass Embedded binary

Open bep opened this issue 3 years ago • 1 comments

See https://discourse.gohugo.io/t/using-dart-sass-hugo-and-netlify/37099/2 for some context.

I'm the lead maintainer of Hugo. We integrate with both LibSASS (now deprecated) and Dart SASS via the embedded protocol. This all works great, but the latter requires a binary to be present in the PATH. I have looked, and I think even the Node library requires an extra download step by the end user.

Anyway, I don't know of any simple AND safe way to provide this from the Hugo executable and for me this looks like a peer dependency simliar to Go, Node, Ruby and other. It would be great if Netlify could install this as part of the default build setup (the binary is very small) and allow end users to select a version, e.g. via DARTSASS_VERSION.

bep avatar Feb 11 '22 19:02 bep

hi @bep! Thank you for the suggestion and all the details. You can open a PR and make this change following the contribution guildelines , and we are here to support if you run into any issues.

ingride avatar Feb 21 '22 11:02 ingride