The title says it all. These settings are under Build & Deploy --> Post processing --> Asset optimization.
When “Bundle JS” is enabled, then “Minify JS” correctly controls whether the bundled js gets minified. But when “Bundle JS” is disabled, the individual JS files are never minified, even when “Minify JS” is enabled.
I was able to reproduce this on a minimal site with a simple html file referencing a simple js file. The site is https://quirky-lamarr-ddbf60.netlify.app/. The code is at https://github.com/russelldavis/netlify-demo.
Here is the full build log: https://gist.github.com/russelldavis/f5649cdd0bb947b9d288febb57c4c90c. It’s a bit suspicious that it says “Minifying js bundle” even though the “Bundle JS” setting is disabled. Here’s a screenshot of the settings:
Thanks for looking into this.