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