Description
This ticket is about the default production configuration (both the webpack & uglify settings) in this file:
In my experience in (mostly Node.js-based) static asset compilation ecosystems, I haven't run across very many cases where full source maps are, by default, generated and pushed to production servers. I presume the reason for this is because that modern JS build toolchains provide a sort of accidental benefit of code obfuscation, and well-generated source maps can actually make it very easy to rip off someone else's source.
The webpack docs don't actually justify this statement, but they say this much about using the source-map
setting in production:
You should configure your server to disallow access to the Source Map file for normal users!
I've looked through the repo and was curious if there was much discussion/justification for enabling full source-maps in production by default and whether it'd be fair to revisit the issue in a thread here.
Curious to hear your thoughts & thanks for your time! ✨