react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

how to import antd?

Open TristanDongMaster opened this issue 7 years ago • 1 comments

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 avatar Dec 05 '18 12:12 TristanDongMaster

@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.

ulani avatar May 27 '21 21:05 ulani