DEV Community

Discussion on: 5 Things to do before making the build for Production. (React JS)

Collapse
 
xtender profile image
π™ΏπšŠπšžπš• π™ΊπšŠπš–πš–πšŠ

I'm pretty sure that 1,2 and 3 is been done by webpack (or the responsible plugin) I mean who on earth would delete ALL comments before a production build in ALL files, the comments are there for (almost) a good reason?

Collapse
 
atulbhattsystem32 profile image
Atul Bhatt

Yes Paul. The production build is optimized and the points 1,2, and 3 are handled. However, removing those files that are not in need is also helpful in the sense that if other devs get through your project they don't have to scratch their head to find the reason for their existence. And having these processes already done may improve the time it takes to make the build.

But you are spot on with your pick. Thanks for that.
Do you have any point that you would like to add which we as a dev can do?