babel-plugin-importlessless-loader
import antdlesscss
create-react-appnpm eject:
1.package.jsonbabel-plugin-import
2.webpack.config.dev.jsless:
is that you can"t use less, in antd. I really don"t know what"s wrong with it.
babel-plugin-importlessless-loader
import antdlesscss
create-react-appnpm eject:
1.package.jsonbabel-plugin-import
2.webpack.config.dev.jsless:
is that you can"t use less, in antd. I really don"t know what"s wrong with it.
antd uses less3.X+,webpack to add the following configuration:
{loader: 'less-loader', options: {javascriptEnabled: true}}
paste the configuration of webpack to see