I am trying to use SAMAXES and YUI maven plugin to minify the css during the maven build. but both of these plugins are trimming the spaces in the css as
calc (14px + (some function) getting replaced with (14px+(some function))
which makes the value invalid in the browser.
In case anyone faced the similar issue can you please let me know ?
i am doing the following configuration in my pom.xml
For YUI following is teh configuration used
<!-- minify css through maven start -->
<!-- minify css through maven end -->
AEM has inbuilt minification in its publish env unless you have disabled it in Publish. The JS and CSS will be minified using YUI engine by default. But due to the incompatibility of the YUI engine to minify the latest UI technologies , it is recommended to use the latest minification engine GCC . Please see here Change the minification engine for client libraries in AEM