Mojave Storm
Mojave Storm

Reputation: 571

gwt-maven-plugin: Only generate necessary js files

I'm using the gwt-maven-plugin to compile a module using maven. The problem is that there are a lot of generated .js files that I believe to be unused (e.g. uploadDialog, map, filetree) in the target folder. Is there a way to set the plugin to only include javascript files used by the application or is the best solution to remove the javascript files manually after the build.

Thanks for your time.

Upvotes: 0

Views: 124

Answers (1)

Thomas Broyer
Thomas Broyer

Reputation: 64541

GWT Ext (not-Sencha) and SmartGWT, to name a few, are both wrappers around JS libs, and the GWT compiler won't pick the bits from the external JS lib that you happen to use. If you want to optimize this, then it's up to you.

Upvotes: 1

Related Questions