Modify css modules class output format
Answered
Atlantic herring posted this in #help-forum
Atlantic herringOP
Hi, i'm looking to modify css modules classnames output format, i tried extending webpack config and changing localIdentName but it didn't work, any ideas?
Answered by Atlantic herring
After further digging, it seems that reconfiguring webpack when using turbopack is not allowed, they mentioned that in the docs that webpack config would not be recognized as it would mean that turbopack won't be used. And there's also this
4 Replies
Atlantic herringOP
For referece, i'm using postcss, turbopack, and 15.2.1-canary.2
American Fuzzy Lop
@American Fuzzy Lop Hope this help you
https://laihong.medium.com/how-to-custom-next-js-css-modules-rendered-classname-or-the-localidentname-dcf57a0f6115
Atlantic herringOP
After further digging, it seems that reconfiguring webpack when using turbopack is not allowed, they mentioned that in the docs that webpack config would not be recognized as it would mean that turbopack won't be used. And there's also this
Answer
Atlantic herringOP
I'm guessing that solves it