mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Quiet sass deprecations warning for dependencies
We are not planning to upgrade foundation-sites
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user