On Tue, Nov 17, 2015 at 8:36 AM, Mihai Stanciu <mihai...@gmail.com> wrote:
> Hi > > We are looking at using OpenLayers3 js library that is now build using > Closure framework. > We will use this in a GWT app using the new JsInterop to map the > OpenLayers3 api. > > 1. Is it possible to compile the OpenLayers(or any closure library) > based on GWT output, or compile the Java and JS together? > > You can compile them together but Closure compiler will not do most optimizations as it will be confused with the GWT output. My recommendation is having two scripts - closure compiled output of the library and GWT compiled output - and use jsinterop to integrate two scripts. > > 1. I see there is a closureFormattedOutput what would be the diference > between this and enableClosureCompiler? > > The goal of the closureFormattedOutput to change the output format so it plays better with Closure compiler but it is experimental and very fragile so I don't recommend it. enableClosureCompiler just runs Closure compiler backend for additional optimizations, it doesn't have anything to do with integration. > Thanks > Mihai > > -- > You received this message because you are subscribed to the Google Groups > "GWT Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit-contributors/cf95aa6f-1d2f-41e3-9675-604ebb3496e8%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/cf95aa6f-1d2f-41e3-9675-604ebb3496e8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA3d2W4yneC_A99AcKoDASMWrToBM4oQYd3OrBmWbdCVGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.