I switched my Site to production mode and enabled JavaScript minification, bundling and concatenating in the backend, expecting Magento to correctly create the .min.js
files - It won't, though. First I thought there might be something wrong with the webserver config, but looking at the filesystem, there simply were no minified versions of the scripts.
I did the following (in vain) to resolve:
- Deploy static content again
- Run upgrade and Di:compile commands
- Flush all caches
- Clean the
var/cache
andpub/static
directories - Cleared the JavaScript/CSS-Cache in admin
- Run
bin/magento deploy:mode:set production
again
So I switched back to non-minified, non-bundled scripts, resulting in Magento loading an insane amount of individual files, taking ages for it.
How do I get this (absolutely basic) feature to work? *grumble *
I know this gets asked pretty often here, but most of the questions deal with files being written to disk, incorrect permissions or development mode.