CSS minifier for Maven compatible with modern CSS

廉价感情. 提交于 2019-12-07 03:19:21

问题


Can someone point me to a Maven dependency I can add to my POM to minify a file using modern CSS?

Before you say to use com.samaxes.maven:minify-maven-plugin, note that it breaks calculated values: https://github.com/samaxes/minify-maven-plugin/issues/161

In fact any CSS minifier based on YUI Compressor will break calculated values: https://github.com/yui/yuicompressor/issues/268

And com.samaxes.maven:minify-maven-plugin/YUI corrupts the file if it contains certain sequences such as the end of a comment */*… (such as found in minified Bootstrap Reboot): https://github.com/yui/yuicompressor/issues/313 .

So is there no CSS minifier for Maven that works with modern CSS?

来源:https://stackoverflow.com/questions/52229690/css-minifier-for-maven-compatible-with-modern-css

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!