facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.77k stars 26.86k forks source link

why there aren't webpack.config.dev.js and webpack.config.prod.js files in the config folder? #9209

Closed amiralibhatti closed 4 years ago

amiralibhatti commented 4 years ago

I want to use the CSS module for adding some CSS style to my component. I used "npm run eject" command, but in the config folder, I couldn't find webpack.config.dev.js and webpack.config.prod.js files. Of course, I'm using the latest version of reactjs.

patel1643 commented 4 years ago

Solution: you don’t need to change anything in those files if you’re using a new version of react it automatically comes with that feature. All you need to do is rename the CSS file with [yourFileName].module.css and it should work!

amiralibhatti commented 4 years ago

Solution: you don’t need to change anything in those files if you’re using a new version of react it automatically comes with that feature. All you need to do is rename the CSS file with [yourFileName].module.css and it should work!

Thanks Friend! I have found it already but thanks a lot!

hbsbashitha commented 3 years ago

it work great