• dogs0n@sh.itjust.works
      link
      fedilink
      arrow-up
      19
      arrow-down
      2
      ·
      14 days ago

      Just to save on wasted bandwidth for the client (and your server) is why I would disable them.

      • brian@programming.dev
        link
        fedilink
        arrow-up
        34
        ·
        14 days ago

        they’re different files generally, the only client that will automatically request them is a debugger.

        you turn them off because you don’t want to expose your full source code. if you would be ok making your webpage git repo public then making sourcemaps available is fine.

      • dreamkeeper@literature.cafe
        link
        fedilink
        arrow-up
        6
        ·
        13 days ago

        I work for a large software corp and we generally keep them in prod because it makes debugging prod issues much easier. The browser only downloads them when the dev tools are open.