[OpenLayers-Users] Minifying scripts

Eric Lemoine eric.lemoine at camptocamp.com
Mon Nov 5 13:22:46 PST 2012


On Mon, Nov 5, 2012 at 10:15 PM, eriktronic <etimmers at gmail.com> wrote:
> appleton wrote
>> I have tried Google's Closure Compiler in advanced mode but it renames the
>> OpenLayers functions that are being called, like OpenLayers.d.Zoom
>>
>> Is there a way to tell Closure to NOT minify any of the OpenLayers calls?
>
> I am using OpenLayers with Closure in advanced mode.

Which doesn't mean you're compiling the OpenLayers code with the
Closure compiler.

> In order to do this you
> need to make an externs file (or multiple) containing all the functions you
> wish to use.

It sounds like you compile your application using the Closure compiler
and use OpenLayers as an external, non-compiled lib.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 94
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com


More information about the Users mailing list