Skip to content
Discussion options

You must be logged in to vote

Hi, you can use tools.bunderChain to remove the built-in CSS-related rules, like this:

export default defineConfig({
  tools: {
    bundlerChain(chain, { CHAIN_ID }) {
      chain.module.rules.delete(CHAIN_ID.RULE.CSS);
      chain.module.rules.delete(CHAIN_ID.RULE.CSS_INLINE);
      chain.module.rules.delete(CHAIN_ID.RULE.CSS_RAW);
    },
  },
});

https://rsbuild.rs/config/tools/bundler-chain

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shixianqin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants