gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.89k stars 7.54k forks source link

Add --silence-deprecation and --fatal-deprecation Dart Sass options (slice?) #13045

Open razonyang opened 6 hours ago

razonyang commented 6 hours ago

I would like to request a feature to silence deprecation warnings from Dart Sass.

{{ $css := resources.Get "index.scss" | toCSS (dict
  "transpiler" "dartsass"
  "silenceDeprecation" "import"
) }}

Reference: https://sass-lang.com/blog/import-is-deprecated/#controlling-deprecation-warnings

bep commented 2 hours ago

Note that these options must be passed via the protobuf API (https://github.com/bep/godartsass); I assume they are also available there and not just as CLI flags.