-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration to allow --quiet-deps to be passed to Dart Sass #21235
Comments
This feature is not available in the Node API. See sass/dart-sass#672 (comment). That said, there is a similar feature which in the Node API sass/sass#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 Will bring up this issue during our next team meeting and see what the other team members think. |
@alan-agius4 Perhaps instead of setting this particular option only, might you consider a mechanism where the consuming project could supply the core of a Sass rendering options object that could enhanced by the builder for use when invoking Sass? That would help with temporary suppression of the deprecation warnings that are the immediate problem in this issue, as well as providing potential future extensibility that might be difficult to predict today. |
Following a discussion during todays’ team meeting we decided that we should move forward and turn on |
@alan-agius4 can you please share the rationale of this decision? Personally, I'd rather see warnings and be aware of them (so I can take action) rather than have them muted and later discover deprecations when upgrading. |
The main reasons why we decided to go with this approach is
|
…om 3rd party stylesheets With this change we enable `quietDeps`, which causes the Sass compiler not to emit warnings from a stylesheet that is loaded through load-path. The `--verbose` option can be used to opt-out from this behaviour and display all warnings. Closes #21235
…om 3rd party stylesheets With this change we enable `quietDeps`, which causes the Sass compiler not to emit warnings from a stylesheet that is loaded through load-path. The `--verbose` option can be used to opt-out from this behaviour and display all warnings. Closes #21235 (cherry picked from commit 8383c6b)
Thank you for the fast turnaround. I'm looking forward to seeing the issues in my code again instead of them being hidden amongst others that I can't control. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🚀 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.
sass/dart-sass#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
)Description
(see above)
Describe the solution you'd like
(see above)
Describe alternatives you've considered
Not sure of any other options.
The text was updated successfully, but these errors were encountered: