GWT 2 CssResource how to

后端 未结 2 2236
抹茶落季
抹茶落季 2021-02-07 08:29

I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS

相关标签:
2条回答
  • 2021-02-07 08:44

    Try with @NotStrict. Example:

    @NotStrict
    @Source("com/web/tech/public/stylesheet1.css")
    public Css stylesheet1();
    
    0 讨论(0)
  • 2021-02-07 08:46

    Got it solved. As pointed out by Thomas@Google Groups --> The @external must not be put "above" the style

    http://code.google.com/p/google-web-toolkit/wiki/CssResource#External...

    The example from this link, the css will look like :

    @external .legacySelectorA, .legacySelectorB;
    .obfuscated .legacySelectorA { .... }
    .obfuscated .legacySelectorB { .... }
    
    /* @external also accepts tail-globs */
    @external .myProject-*;
    .myProject-text {}
    .myProject-foo {}
    
    0 讨论(0)
提交回复
热议问题