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

后端 未结 4 1259
感动是毒
感动是毒 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:23

    According to the GWT documentation it is possible to disable ofbuscation in general. From CssResource section "levers and knobs":

    The configuration property CssResource.style may be set to pretty which will disable class-name obfuscation as well as pretty-print the CSS content. Combine this with a ClientBundle.enableInlining value of false to produce a CSS expression which is amenable to client-side editing.

    In my work GWT project, I can see this property is actually set in Resources.gwt.xml (included in gwt-user.jar):

      
      
      
    

    What is unclear to me is how to override this value, since it is already set. Did you manage to figure that out?

提交回复
热议问题