Closed jmking closed 6 years ago
For a .css
file to imported as css modules it must be named <something>.module.css
.
Anything else will be imported as regular css.
Give that a go and let me know if that doesn't work.
I will update the docs once I release the next version to make it clear. Thanks for letting me know.
Just created a new project using react-scripts-cssmodules 1.0.142. Modifying App.js to test the css module functionality appears to show that its not working. The following is my App.js:
If I understand correctly, the modification to the top level div should result in the App class from App.css being applied. However no css is applied. printing
styles.App
to the console yields undefined.Am I missing something?