-
18 Nov 2012 4:49 AM #1
Leaflet library breaks on production build
Leaflet library breaks on production build
Hello everyone
I'm trying to build my Sencha Touch application which is using the Leaflet Library (http://leafletjs.com/). As soon as I'm doing a production build with Sencha Cmd 3.0.0.250 the L variable gets overwritten by the compressed microloader in the index.html file.
L variable in index.html:
When I manually disable the ClosureCompressor in the [SenchaCmd]/plugins/touch/current/app-build.js file on line 355Code:function L(a,b){var c=k.createElement("iframe");m.push({iframe:c,callback:b});c.src=a+".html";c.style.cssText=
the microloader doesn't get compressed and my app works again.Code://compressor = new ClosureCompressor();
Is there a way to tell the compressor not to use the L variable?
Thanks in advance!
tschortsch
-
31 Jan 2013 5:55 AM #2
I use SenchaTouch 2.1 and leaflet 0.4, I did this and my app not run.
What happened with this problems, the microloader still overwrite the leaflet instance in production build?Last edited by rbruno; 31 Jan 2013 at 6:00 AM. Reason: add description
-
31 Jan 2013 6:13 AM #3
I didn't find a proper solution for this so far. I'm still using the workaround I posted above.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote