Skip to content

Commit

Permalink
remove sass-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Sep 23, 2024
1 parent f644987 commit 8557d14
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 8557d14

Please # to comment.