Invalid dva+react+antd custom theme configuration

projects created with dva-cli
projects .wabpackrc are configured as follows

{
  "extraBabelPlugins": [
    ["import", { "libraryName": "antd", "libraryDirectory": "es", "style": "true" }]
  ],
  "theme": {
    "@primary-color": "-sharp1088ae"
  }
}

the current writing method, not only did not change the color matching, the original antd style has not been successfully introduced.
do you need to configure less-load separately

according to the official documentation, you only need to configure .webpackrc
less

.
Aug.23,2021

.css is compiled and compressed and cannot change any values. The less file can be replaced by variables, thus changing the theme of the antd.

{
  "style": true
}

true cannot be quoted. Bool is different from string

Menu