DEV Community

Discussion on: Setup React with Webpack and Babel

Collapse
 
dtroyano86 profile image
Daniel Troyano

Ya for sure swapping over to production mode in general would probably be worthy of another post. I'll try to think on it.

But for your current problem, I would say check out Webpack's production documentation. I'm still learning, but my understanding would be that once you get the code working the way you want with the development build, you should be able to swap the mode over to 'production' and generate a minified version that you can just add to your html file.

Best of luck with that!
Daniel