I don't understand how minification is supposed to work for JS/CSS. My version is Magento 2.1.0
I found the setting in the configuration under
Stores -> Configuration -> Advanced -> Developer where I can turn on minification. It tells me that this only works in production mode, so I turned on production mode and redeployed static content and compiled DI, and now my site is completely broken and most JS and CSS files are not found (404).
This is not surprising to me since the filenames are now different! What used to be
myscript.js is now
myscript.min.js in my
pub/static folder, so no wonder that when the frontend tries to load
myscript.js the file is not found.
What's the idea here? How am I supposed to be able to turn this on without breaking anything? Do I need to develop my modules and themes in a different way to account for this name change? How?