We're building a large enterprise application (dozens of modules) with GWT and need to decide whether to use ClientBundle or not. I was curious what pros/cons the StackOverflow GWT community view as deal makers and deal breakers for such a use case.
As far as we see it currently:
Pros
- All images/css files that take up server resources to download are eliminated
- Client loads faster because of the above (i.e. inlined image urls)
- CSS names are obfuscated, so namespace collisions are eliminated
- CSS is automatically optimized / verified
- Unused CSS classes are eliminated (above)
- Java reference to class names are replaced with refactorable css interfaces
- UiBinder reference to class names are replaced with refactorable css interfaces
- No more big "main.css" fails as resources are module bundle specific
Cons
- For maintenance CSS becomes either unreadable in obfuscated mode, or extremely verbose in debug mode
- More steps needed for basic CSS work (like adding class)
- All devs must know Java,CSS,HTML nuances
- CSS3 and other at-rules (i.e. @font-face) are not supported by GWT natively
- Increased compilation times
Thanks!