cryostatio / cryostat-web

Web front-end for Cryostat: Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io/
Other
10 stars 20 forks source link

[Request] Enable JS minification plugin only in CI builds, or enable sourcemaps #1279

Open andrewazores opened 1 month ago

andrewazores commented 1 month ago

Describe the feature

It would be nice to have JS minified for CI builds, or for release builds, but have that optimization turned off for development snapshot builds. Non-minified JS is much easier to troubleshoot since symbol names match sources and therefore error stacks are possible to follow.

Anything other information?

No response

andrewazores commented 1 month ago

An alternate approach would be to configure sourcemaps properly during the build. This should mean that builds can be minified whether built as a local or CI snapshot or as a CI release, but there would be additional sourcemap assets available to help with debugging should any runtime errors occur.