GWT 2.7超级开发模式不适用于CssResource.style = obf

时间:2015-11-20 08:09:30

标签: gwt

直到GWT 2.5,默认情况下所有css类都被混淆,但在GWT 2.7中,在超级开发模式下运行时,它会在类名中附加完整的包。我在下面试过,但它不起作用。

< set-configuration-property name =" CssResource.style"值="物镜" />

我没有混淆css样式,而是打印出像com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell这样的名字。

1 个答案:

答案 0 :(得分:1)

这是on purpose。代码中有一条注释解释了原因:

  // CSSResourceGenerator needs to produce stable, unique naming for its input.
  // Currently on default settings CssResourceGenerator's obfuscation depends on
  // whole world knowledge and thus will produce collision in obfuscated mode, since in
  // incremental compiles that information is not available.

与TODO一起最终修复CSSResourceGenerator

但是,如果我可以问一下,非混淆样式名称的问题是什么?

相关问题