On my production website, I have compiled Javascript.
It would be very convient for
What about using a subdomain like http://static.example.comfor static files (e.g. .js files), and changing the hostfile?
Add the following line to the hostfile (/etc/hosts for Linux, C:\WINDOWS\System32\drivers\etc\host):
static.example.com 127.0.0.1
Of course you've to run a server with the files from http://static.example.com/ on 127.0.0.1.
Another solution is using a (local) proxy server like Privoxy for redirecting http://example.com/js/ to http://localhost/js/.