之前学了一下sass的相关知识,发现sass还是挺好用的,不过需要用到nodeJs,作为一个小项目,还要做前后端分离,其实也是挺麻烦的,在Github上找了一下相关的maven插件,发现这个还不错
<plugin>
<groupId>nl.geodienstencentrum.maven</groupId>
<artifactId>sass-maven-plugin</artifactId>
<version>2.18</version>
<configuration>
<resources>
<resource>
<source>
<directory>${basedir}/src/main/webapp</directory>
<includes>
<include>**/*.scss</include>
</includes>
</source>
<relativeOutputDirectory>..</relativeOutputDirectory>
<destination>${project.build.directory}/${project.build.finalName}</destination>
</resource>
</resources>
</configuration>
</plugin>
不过编译速度不是很快