ReactJS setup (unique CSS)

Posted Almost 6 years ago. Visible to the public. Draft.

Once you have ejected the project, edit the webpack.config.dev.js file. Search for test: /\.css$/. Under the the use >> options property add the following under the importLoaders: 1,:

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

This allows for setting up unique CSS class names when multiple components are used that might use a similarly named CSS class style.

hashharvest
Last edit
Almost 6 years ago
hashharvest
Posted by hashharvest to ReactJS (2018-05-01 18:10)