问题
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