1

is it possible to convert via wro4j maven plugin imported into css image to uridata in build time? I see on their wiki run-time solution but I would like to have static files already converted. Or maybe somebody knows another plugin which can do this?

4

1 回答 1

0

wro4j 中的运行时解决方案和构建时解决方案之间几乎没有区别。CssDataUriPreProcessor 负责将图像 url 转换为 css 数据 uri。为了将它与 maven 插件一起使用,只需将此处理器添加到要应用的处理器列表中。例子:

preProcessors=cssImport,cssDataUri,jsMin,cssMin

请注意已配置预处理器列表中的“cssDataUri”别名。添加后,应将其应用于每个预处理资源。

于 2013-10-20T19:23:28.577 回答