I am moving my javascript and css files to Amazon S3 - can anyone suggest an efficient way to automatically pack / minimize files without defeating the purpose of placing them on S3?
Atm, I have my javascript files called this way:
<script type="text/javascript" src="myjavascript.js.php"></script>
Where the php file finds myjavascript.js, packs it, saves the packed js (myjavascript_min.js) into a separate folder and returns it. This does not seem very effective, although it only goes through the packaging process, if neither myjavascript_min.js exists or myjavascript.js has been changed since the last creation of myjavascript_min.js.
Any help appreciated!
source
share