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

GWT 2.7 super dev mode does not work with CssResource.style=obf

直到 GWT 2.5,所有 css class 默认情况下都会被混淆,但在 GWT 2.7 中,而 运行 在超级开发模式下,它会在 [=21= 中附加完整的包] 姓名。我已经在下面尝试过,但它不起作用。

我没有混淆 css 样式而是打印名称,如 com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell.

这是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

但是,如果我可能会问,非混淆样式名称有什么问题?