react-starter-kit
react-starter-kit copied to clipboard
how to import antd?
I encouter the issues: the project DO NOT import the antd css file when i follow the steps: rules: [ { test: /.css$/, include: [/node_modules/.*antd/], loader: 'style-loader', },
// Convert CSS into JS module
{
issuer: { not: [reStyle] },
exclude: [/node_modules\/.*antd/],
use: 'isomorphic-style-loader',
},
// Only use babel-plugin-import in client side clientConfig.module.rules[0].options.plugins = [ ...clientConfig.module.rules[0].options.plugins, ['import', { libraryName: 'antd', style: 'css' }], ];
@TristanDongMaster thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.
NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.