3 ms·
I wouldn't, or to be more precise - I wouldn't by default. I prefer to enable things like source maps via an environment variable or a special build - when I kn
by nallerooth 9y ago
I wouldn't, or to be more precise - I wouldn't by default. I prefer to enable things like source maps via an environment variable or a special build - when I know that I need to debug something. By always including source maps, I just increase the asset size for the site's visitors, with "no benefit" (most end users won't have a clue about how to debug something).
Regarding the security aspect - don't put anything you know to be sensitive/insecure on the Internet in the first place.
- holman 9y agoSource maps aren’t actually loaded by the browser unless specifically requested by opening web inspector, fwiw.
- draw_down 9y agoYes, the minified source should contain a URL for the source map. The map should not be included with the minified source, that would be counterproductive.
- thejosh 9y agoWe include them, but lock them away via nginx rules for sentry and dev IPs.