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

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

    You can use the @external directive to prevent a css classname from being obfuscated.

    In your case, your css file might contain

    @external top-table;
    .top-table {
      some: rule;
    }
    

提交回复
热议问题