question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add configuration to allow --quiet-deps to be passed to Dart Sass

See original GitHub issue

🚀 Feature request

Dart Sass is throwing lots of deprecation warnings for 3rd party packages. The Dart Scss team has added a flag to silence them.

https://github.com/sass/dart-sass/issues/672

Is it possible to have a configuration flag in the ng cli to pass through flags to Dart Sass?

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

(see above)

Describe the solution you’d like

(see above)

Describe alternatives you’ve considered

Not sure of any other options.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
alan-agius4commented, Jul 2, 2021

@elektronik2k5,

The main reasons why we decided to go with this approach is

  • Such warnings are not directory actionable by the consumer of the library.
  • It should be the responsibility of the library to have integration tests to validate that their Sass is not producing warnings/errors.
  • These warnings can be pretty noisy when having a lot of components which can result in missing actionable deprecations which are caused by your code.
  • I can see that we can allow these to be unmuted, via the --verbose flag.
2reactions
alan-agius4commented, Jun 29, 2021

This feature is not available in the Node API. See https://github.com/sass/dart-sass/issues/672#issuecomment-846311746. That said, there is a similar feature which in the Node API https://github.com/sass/sass/issues/3065.

It very unlikely that we want to increase the API and provide this feature to turn on/off this behaviour.

Possibly we can turn on quietDeps, although I feel like this would cause other issues down the line, since warnings will not be displayed, consumers of the libraries will be unable to report these warnings to the library author. Eventually these warnings will turn to fatal errors and there would be no way to suppress them.

Will bring up this issue during our next team meeting and see what the other team members think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dart Sass Command-Line Interface
This option (abbreviated -I ) adds an additional load path for Sass to look for stylesheets. It can be passed multiple times to...
Read more >
How to pass SASS option to Angular library builder
There is an option : --quiet-deps that can be used when manually executing sass, to hide these warnings. My question is, how and...
Read more >
sass-loader - webpack - JS.ORG
This allows you to control the versions of all your dependencies, and to choose which Sass implementation to use. Note. We highly recommend...
Read more >
Using Gulp with Dart Sass - Zell Liew
How to set up Dart Sass with Gulp. ... Setting up Gulp ... Next let's create a css function to transpile Sass to...
Read more >
esbuild-sass-plugin - npm
esbuild plugin for sass/scss files supporting both css loader and css ... style to be added to the html page; uses the new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found