In GWT 2.0 CssResource, how I can turn off obfuscation for all my css classes?

后端 未结 4 1260
感动是毒
感动是毒 2021-02-12 11:52

I have a CssResource where I want to have some of the css classes \"mapped\" to methods:

@ClassName(\"top-table\")
String topTable();

But I wan

4条回答
  •  野的像风
    2021-02-12 12:34

    To have not obfuscated class names you simply need to add following line to your gwt.xml file:

      
    

    When set to stable class names will consist of qualified class name followed by method name in your resource interfaces (of course with all . replaced by _)

    All possible values for CssResource.style (for gwt 2.7) are:

    • pretty
    • debug
    • stable
    • stable-shorttype
    • stable-notype

    To verify values available for your gwt version look at com.google.gwt.resources.rg.CssObfuscationStyle javadoc (or source code) for gwt version you're using.

提交回复
热议问题