Quiet sass deprecations warning for dependencies

We are not planning to upgrade foundation-sites
This commit is contained in:
Gaetan Craig-Riou
2025-12-19 16:57:18 +11:00
parent 55a15b914c
commit bb0c1e7a0f

View File

@@ -6,5 +6,15 @@ const options = {
}
}
const OFNwebpackConfig = merge(webpackConfig, options)
// quiet deprecations in dependencies, notably foundation-sites
const scssRule = OFNwebpackConfig.module.rules.find((rule) => rule.test.test(".scss"))
const sassDefaultOptions = scssRule.use[3].options.sassOptions
scssRule.use[3].options.sassOptions = {
...sassDefaultOptions,
quietDeps: true
}
// This results in a new object copied from the mutable global
module.exports = merge(webpackConfig, options)
module.exports = OFNwebpackConfig