mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
resources: Add option to silence dependency deprecation warnings
Closes #13530
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
6f14dbe24c
commit
c15ebce2fd
@@ -161,6 +161,11 @@ type Options struct {
|
||||
// The IDs can be found in the Dart Sass log output, e.g. "import" in
|
||||
// WARN Dart Sass: DEPRECATED [import].
|
||||
SilenceDeprecations []string
|
||||
|
||||
// Whether to silence deprecation warnings from dependencies, where a
|
||||
// dependency is considered any file transitively imported through a load
|
||||
// path. This does not apply to @warn or @debug rules.
|
||||
SilenceDependencyDeprecations bool
|
||||
}
|
||||
|
||||
func decodeOptions(m map[string]any) (opts Options, err error) {
|
||||
|
Reference in New Issue
Block a user