How to completely disable the built-in CSS handling? #6435
Answered
by
chenjiahan
shixianqin
asked this question in
Q&A
-
|
Hi, Is there currently a configuration option or recommended approach to achieve this? |
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Oct 26, 2025
Replies: 1 comment
-
|
Hi, you can use 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);
},
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
shixianqin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, you can use
tools.bunderChainto remove the built-in CSS-related rules, like this: