First stable release of dart-sass-embedded

Is this (apparently) stable release the thing for which everyone was waiting?

dart-sass-embedded 1.49.5

Moments later the first stable release was superseded by the second stable release, which was superseded by the third stable release a few minutes after that.

https://github.com/sass/dart-sass-embedded/releases/latest

Bash script to download and install latest for Linux
base=https://github.com && temp=dart-sass-embedded.tar.gz
path=$(curl -sL https://github.com/sass/dart-sass-embedded/releases/latest | grep "href.*linux-x64.tar.gz" | awk -F'"' '{print $2}')
wget -qO $temp $base$path
tar -xvzf $temp
sudo mv sass_embedded/dart-sass-embedded /usr/local/bin/
sudo chmod 755 /usr/local/bin/dart-sass-embedded
rm $temp
rm -r sass_embedded/ 
dart-sass-embedded --version

Example of using it in your templates
{{/* Get Sass resource. */}}
{{ $scss := resources.Get "scss/main.scss" }}

{{/* Transpile to generate a short cache-busting target path. */}}
{{ $css := $scss | toCSS }}
{{ $cacheBuster := $css.Content | sha1 | first 7 }}
{{ $targetPath := printf "css/style.%s.css" $cacheBuster }}

{{/* Transpile again with options. */}}
{{ $options := dict "targetPath" $targetPath "transpiler" "dartsass" }}
{{ $css := $scss | toCSS $options | minify }}
{{ $temp := $css | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}" integrity="{{ $temp.Data.Integrity }}" crossorigin="anonymous">

{{/* 
  This produces something like:
  <link rel="stylesheet" href="/css/style.8105fcf.min.css" integrity="sha512-..." crossorigin="anonymous">
*/}}
3 Likes

Yes, am definitely unsure what they mean by “stable” at this point. :smiley:

Stable for a new product means that all issues that came up in Beta were solved and people who did not care about it before it was pronounced stable are now flocking up and realise that with their input in that critical phase they might not have to report bugs with their specific setups and special cases that are “lightning-fast” solved and included in updated releases :wink:

After being in Beta for 18 months everything has the right to be called stable. That’s “stable” :slight_smile:

Also: the changes of those two re-releases were dart sass updates (the API the program uses as a dependency) and CHANGELOG changes.

1 Like