Create React App with react-scripts-cssmodules


#1

Hi,
I am a newbie developer and want to use create-react-app with react-scripts-cssmodules. Can anyone point me to a tutorial / way to do this? I tried remixing the create-react-app-sample and updating the packages but this does not work.

Thanks

Amanda


#2

hi! in the package.json file of your project, you can add other npm modules (in your case react-scripts-cssmodules) and then i believe you should be good to go!


#3

I tried that Jenn. Does not work. I think it has to do with the webpack version being used. For now I had to use the dangerous disable host check but if I could set HOST in my env file might be better. Don’t know what to set it to, though

See below:

Thanks

Amanda


Create React App Support