React : CSS class name import not working

后端 未结 15 1618
轻奢々
轻奢々 2020-12-31 20:16

i have a

div in my react component and im importing some class name from a class css file, but the class name is not getting integrated to the main
15条回答
  •  无人及你
    2020-12-31 21:06

    You have to configure some staff. follow these steps:

    1. npm run eject run this command inside your project root directory
    2. search cssRegex and add the following lines under use: getStyleLoaders({

          modules:true,
          localIdentName:'[name]__[local]__[hash:base64:5]'
      

    Enjoy!

提交回复
热议问题