[Solved] Is it possible to minify/uglify default.js and default.css?

In production (when starting plone using bin/instance start), JS and CSS bundles are concatenated into default.js and default.css, but there's a lot of content that is not minified. Would it be possible to automatically (or manually) minify them (after the final concatenations)?

Edit: for example, require.js is not minified (also when inserted into default.js); is it intentional?

No idea why it is this way, but if you enable compressed transport (usually gzip) in your webserver, minification does not matter much transport wise.

It's happening here:

https://github.com/plone/Products.CMFPlone/blob/4a046bdd2cf55fe6b0055c4935a8196c23a42431/Products/CMFPlone/resources/browser/combine.py

Resources are concatenated. Some minifying methods could be included.

Plone Foundation Code of Conduct