From bb0c1e7a0f3ef3197c41f7a8dc3ef688adcb2428 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Fri, 19 Dec 2025 16:57:18 +1100 Subject: [PATCH] Quiet sass deprecations warning for dependencies We are not planning to upgrade foundation-sites --- config/webpack/webpack.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/webpack/webpack.config.js b/config/webpack/webpack.config.js index cd663becf8..5fbe79ce63 100644 --- a/config/webpack/webpack.config.js +++ b/config/webpack/webpack.config.js @@ -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