css modules make it configurable instead returning as proxy #1970
-
does it possible to make it configurable for css module instead of returning it as proxy? |
Beta Was this translation helpful? Give feedback.
Answered by
sheremet-va
Sep 4, 2022
Replies: 1 comment
-
Yes, you can configure You would still need to enable CSS for it to actually process export default {
test: {
css: {
include: [/\.module\./]
}
}
} You don't have to specify CSS extension, because this include only applies to CSS files. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aelbore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can configure
classNameStrategy
: https://vitest.dev/config/#css-modules-classnamestrategyYou would still need to enable CSS for it to actually process
module
, usingcss.include
:You don't have to specify CSS extension, because this include only applies to CSS files.