1

So essentially I want to bundle my files and uglify into one to prevent my code being duplicated or at least harder to do. This can be seen when you open up the console and go sources. Amazon among one of the couple other websites I have seen out there achieved this and I am looking for the best way to do so. This is how amazon shows:

e

and this is the typical site source that the majority of websites have:

enter image description here

Recap: Most websites show the src files separated and un-uglified and I would like to bundle my production build into one file that has been uglified/transpiled. I hope this makes sense if any clarification is needed let me know. Thanks.

  • 4
    The reason the second one shows as it does is because they have included their sourcemaps in their deployment. I would search around for how to disable them in react. Maybe [this question](https://stackoverflow.com/questions/51984146/how-to-disable-source-maps-for-react-js-application) – Steven B. Jan 12 '20 at 04:48
  • 1
    Wow that did the trick it was as simple as including GENERATE_SOURCEMAP=false on the build script. Thank you! – Chrisschunn Jan 12 '20 at 05:44
  • Auto-comment: Does this answer your question? [How to disable source maps for React JS Application](https://stackoverflow.com/questions/51984146/how-to-disable-source-maps-for-react-js-application) – Emile Bergeron Jan 12 '20 at 05:51

0 Answers0