How to set `quietDeps` option for dart-sass
See original GitHub issueUpdate
dart-sass v1.35.1 supports quietDeps
and verbose
flags, and so you can pass it using sassOptions
object on sass-loader options. Docs reference. See example below that now works.
Documentation Is:
- Missing
- Needed
- Confusing
- Not Sure?
Please Explain in Detail…
It is not clear how to set the quietDeps
flag on the sass options. I have tried the below which doesn’t work:
const sassLoader = {
loader: 'sass-loader',
options: {
sassOptions: {
quietDeps: true,
},
},
};
This option is useful since deprecation of division with /
. Many dependencies trigger the deprecation warning, and these warnings are making very difficult to see the warnings of my own code.
Your Proposal for Changes
I need some help in figuring how to configure this. Once figured out I can open a PR documenting it.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:27 (9 by maintainers)
Top Results From Across the Web
Dart Sass Command-Line Interface
The Dart Sass executable can be invoked in one of two modes. ... These options control how Sass loads its input files and...
Read more >Disable Dart SASS Warnings Produced By External Theme File
The quietDeps option isn't exposed yet to the Node.js API. In the meantime you can downgrade to sass 1.32 without too many changes....
Read more >sass-loader - webpack - JS.ORG
sass-loader requires you to install either Dart Sass, Node Sass on your own (more documentation can be found below) or Sass Embedded. This...
Read more >Using Gulp with Dart Sass - Zell Liew
Setting up Gulp. First, you need to install Gulp. npm install gulp --save-dev. Second, you need to create a file called gulpfile.js inside ......
Read more >sass | Dart Package - Pub.dev
The old API will continue to be supported until Dart Sass 2.0.0, ... Add a quietDeps option which silences compiler warnings from stylesheets...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Weirdly enough, I’ve set the option in
sassOptions
but still getting deprecation warnings.Using
1.35.0
with the updated JS API: https://github.com/sass/sass/issues/3065#issuecomment-861086560I can confirm that on my project
quietDeps
flag is working correctly since dart-sass 1.35.1