Hi All,
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 -->
<plugin>
<artifactId>yuicompressor-maven-plugin</artifactId>
<groupId>net.alchim31.maven</groupId>
<version>1.5.1</version>
<executions>
<execution>
<goals>
<goal>compress</goal>
</goals>
</execution>
</executions>
<configuration>
<webappDirectory>project dir</webappDirectory>
<excludes>
<exclude>**/*.js</exclude>
<exclude>**/*.min.css</exclude>
</excludes>
<includes>
<include>**/*.css</include>
</includes>
<force>true</force>
</configuration>
</plugin>
<!-- minify css through maven end -->
For SAMAXES,
<plugin>
<groupId>com.samaxes.maven</groupId>
<artifactId>minify-maven-plugin</artifactId>
<version>1.7.6</version>
<executions>
<execution>
<id>default-minify</id>
<configuration>
<webappSourceDir>source dir</webappSourceDir>
<cssSourceDir>css</cssSourceDir>
<webappTargetDir>target dir</webappTargetDir>
<cssTargetDir>css</cssTargetDir>
<cssSourceFiles>
<cssSourceFile>style.css</cssSourceFile>
</cssSourceFiles>
<cssFinalFile>project.css</cssFinalFile>
</configuration>
<goals>
<goal>minify</goal>
</goals>
</execution>
</executions>
</plugin>
Thanks..