You can also combine URL rewriting with some optimization tools to keep your code clean while serving files that aren’t filled with comments and unnecessary white space. I made a script that uses YUI, LESS, and a couple other tools on my CSS and JS files and copied them to a “compressed” directory. All this gets uploaded and the rewrite rules change anything that points to “assets” to “assets/compressed.” This way I can keep clean code on my side, and serve content that doesn’t waste bandwidth on the other side. This can also be combined with version control and FTP/upload so you have a working directory and one script that prepares your website and updates/uploads it.
You can also combine URL rewriting with some optimization tools to keep your code clean while serving files that aren’t filled with comments and unnecessary white space. I made a script that uses YUI, LESS, and a couple other tools on my CSS and JS files and copied them to a “compressed” directory. All this gets uploaded and the rewrite rules change anything that points to “assets” to “assets/compressed.” This way I can keep clean code on my side, and serve content that doesn’t waste bandwidth on the other side. This can also be combined with version control and FTP/upload so you have a working directory and one script that prepares your website and updates/uploads it.