Skip to content

Commit

Permalink
Revert "fix(Build): Silence SASS 1.79 deprecation warnings, until thi…
Browse files Browse the repository at this point in the history
…s is solved in Bootstrap upstream."

This reverts commit 6bc653a.

This fix isn't needed anymore after applying the change from the
previous commit which gets rid of the Bootstrap SCSS includes.
  • Loading branch information
thet committed Sep 23, 2024
1 parent 4d89dca commit 2ca17d2
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ca17d2

Please sign in to comment.