sass / dart-sass

The reference implementation of Sass, written in Dart.
https://sass-lang.com/dart-sass
MIT License
3.87k stars 350 forks source link

An option to make nested warning (and similar warnings) fatal #2277

Closed daniluk4000 closed 1 month ago

daniluk4000 commented 1 month ago

This will be very different from https://github.com/sass/dart-sass/issues/2276.

I know this will be fatal in Sass v2 (as it seems at least), but as team lead, I want to have an option to draw attention to this warning and make build fail because of it. Of course console spam is insane, but for few issues can be missed sometimes,

ntkme commented 1 month ago

This already exists today in js-api: https://sass-lang.com/documentation/js-api/interfaces/options/#fatalDeprecations https://sass-lang.com/documentation/js-api/interfaces/deprecations/#mixed_decls

Similar option also exists in the command line sass.