[OpenLayers-Users] Minifying scripts

Richard Jones richardjnz at yahoo.com
Wed Nov 7 11:54:57 PST 2012


Thanks for the tips.

I'm actually accessing the openlayers library directly from my script like this:

<script src="http://www.openlayers.org/api/OpenLayers.js"></script>

I assume that is allowed?

So I'm just needing to minify my own script.

The advanced mode of Closure seems to change other things like "document" so I gave up on it and used the simple mode instead. I've also written a quick SED script to shorten global variables before feeding to closure - together that seems to do all the minifying I need at present.



More information about the Users mailing list