【发布时间】:2015-11-20 08:09:29
【问题描述】:
直到 GWT 2.5,默认情况下所有的 css 类都被混淆了,但是在 GWT 2.7 中,在超级开发模式下运行时,它会在类名中附加完整的包。我在下面尝试过,但它不起作用。
我没有混淆 css 样式,而是打印 com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell 之类的名称。
【问题讨论】:
标签: gwt
直到 GWT 2.5,默认情况下所有的 css 类都被混淆了,但是在 GWT 2.7 中,在超级开发模式下运行时,它会在类名中附加完整的包。我在下面尝试过,但它不起作用。
我没有混淆 css 样式,而是打印 com-google-gwt-user-cellview-client-CellTable-Style-cellTableCell 之类的名称。
【问题讨论】:
标签: gwt
这是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。
但是,如果我可能会问,非混淆样式名称有什么问题?
【讨论】: