I am using this react redux starter. I want to use this starter with ant design. But I am having a hard time to add ant design to this starter via webpack. From the ant design doc I am suppose to use a .babelrc file to import the ant design babel library into my project. The starter doesn't use a .babelrc file to load babel plugins (as shown here), it uses the webpack configuration file.
How do I add the ant design library (the code below) into the webpack configuration file?
{
"plugins": [
["import", { libraryName: "antd", style: "css" }] // `style: true` for less]
}
NB: I already tried the approach in the ant design doc, but I get an error message: Unknown plugin "import" in *\.babelrc at 0. I also tried inserted a line ["import", { libraryName: "antd", style: "css" }] into row 76 the webpack config file of the starter, but error Unknonw plugin "import" specified in base at 4.