From 8557d14b0343b41abbc2d0c23c0ecfb286cf8bd0 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Mon, 23 Sep 2024 14:26:35 +0200 Subject: [PATCH] remove sass-loader --- webpack.config.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 0eefb7fff..7555942f7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -163,25 +163,6 @@ module.exports = () => { ); } - - // Fix for sass-loader to silence deprecation warnings, mainly from BootstrapJS. - // TODO: Remove this when BootstrapJS is updated. - // See: https://github.com/twbs/bootstrap/pull/40864 - - const css_loader_rule = config.module.rules.filter(it=>it?.use?.includes?.("sass-loader")); - if (css_loader_rule.length > 0) { - const sass_loader_index = css_loader_rule[0].use.indexOf("sass-loader"); - css_loader_rule[0].use[sass_loader_index] = { - loader: "sass-loader", - options: { - sassOptions: { - quietDeps: true, - //silenceDeprecations: ['legacy-js-api'], - }, - }, - }; - } - console.log(JSON.stringify(config, null, 4)); return config;