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?

5
  • How do you minify these files? Commented Apr 20, 2023 at 16:08
  • Does this answer your question? stackoverflow.com/questions/51984146/… Commented Apr 20, 2023 at 16:09
  • @ChrisG that works for react apps/npm based apps, but not vanilla apps/files Commented Apr 20, 2023 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 Commented Apr 20, 2023 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. Commented Apr 20, 2023 at 16:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.