0

I have done research on how to disable source maps for React js applications using an env variable or webpack config flag.

However, how do you disable sourcemaps for vanilla html, css, and javascript files?

Drew Gallagher
  • 442
  • 1
  • 12
  • How do you minify these files? – Konrad Apr 20 '23 at 16:08
  • Does this answer your question? https://stackoverflow.com/questions/51984146/how-to-disable-source-maps-for-react-js-application – Chris G Apr 20 '23 at 16:09
  • @ChrisG that works for react apps/npm based apps, but not vanilla apps/files – Drew Gallagher Apr 20 '23 at 16:12
  • @Konrad I'm not sure if that's a question for me or on top of the original question. However, I know there are packages like uglify and terser-webpack that help with minification – Drew Gallagher Apr 20 '23 at 16:13
  • 1
    This is entirely dependent on how you're minifying the code, I'd expect every tool to have its own way of enabling/disabling source maps. – Barmar Apr 20 '23 at 16:42

0 Answers0