I am using NextJs, and I want to know how I can configure webpack to support both antd and antd-mobile simultaneously.
Currently, not able to configure webpack correctly
I am using NextJs, and I want to know how I can configure webpack to support both antd and antd-mobile simultaneously.
Currently, not able to configure webpack correctly
Copyright © 2021 Jogjafile Inc.
In your next.config.js change
antStyles = /antd\/.*?\/style\/css.*?/toantStyles = /antd.*?\/.*?\/style\/css.*?/. This basically changes the regex to match antd and antd-mobile as well.Then set your .babelrc to