react-app-rewire-css-modules-simple
Add CSS Module loaders to your create-react-app via react-app-rewired. Simple, without SASS or LESS.
Installation
npm install --save-dev react-app-rewire-css-modules-simple
Usage
Use the following file extensions for any css module styles:
*.module.css
Example
In your react-app-rewired configuration:
/* config-overrides.js */ const rewireCssModules = ; module { config = ; // with loaderOptions config = rewireCssModulesconfig env; return config;};
In your React application:
/* App.module.css */
// App.js import React from 'react';import styles from './App.module.css'; text <div =>text</div>