I know how to minimize JS and CSS files, but is there a way to automatically minimize these files in a production system? For example, I modify something inside the original JS files and update the production environment. However, when using JS files, it should use an automatic mini version of the JS file (it is advisable to update the current shortened version if the source files were changed).
Given that I work on both Unix and Windows, writing a bash script didn't seem like a plausible idea. Thus, anything that is not OS dependent, or perhaps something that uses PHP for this, would be great. Any suggestions?
source share