如何通过GWT编译保存css类名?(How to preserve css class name through GWT compilation?)
如何保留UiBinder文件( *.ui.xml )中使用的css样式名称,并防止它们被混淆为像GEMOY02DD3B这样的GEMOY02DD3B ?
How to preserve css style names used in UiBinder files (*.ui.xml) and prevent them to be obfuscated to something like this GEMOY02DD3B?
最满意答案
使用@external GWT特定的CSS at-rule,后跟类名列表来声明不应混淆的类。
在CssResource的javadoc中记录 。
例如
<ui:style> @external floatingLeft; .floatingLeft { float: left; } </ui:style>Use @external GWT specific CSS at-rule followed by list of class names to declare classes that shouldn't be obfuscated.
Documented in javadoc of CssResource.
E.g.
<ui:style> @external floatingLeft; .floatingLeft { float: left; } </ui:style>更多推荐
css,xml,ui,GEMOY,UiBinder,电脑培训,计算机培训,IT培训"/> <meta name="des
发布评论