This project is a mirror of https://gitlab.com/haynes/libsass-maven-plugin
MIT License
Libsass Maven Plugin uses libsass to compile sass files. Uses jsass to interface with C-library.
This plugin only works with 64bit OS, because the upstream library jsass removed 32bit support. Please look here for a full compability matrix: https://github.com/bit3/jsass#compatibility-overview
libsass-maven-plugin is available on central-repository since version 0.2.11
Configure plugin in your pom.xml:
<build>
<plugins>
<plugin>
<groupId>com.gitlab.haynes</groupId>
<artifactId>libsass-maven-plugin</artifactId>
<version>0.3.1</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<inputPath>${basedir}/src/main/sass/</inputPath>
<outputPath>${basedir}/target/</outputPath>
<includePath>${basedir}/src/main/sass/plugins/</includePath>
</configuration>
</plugin>
</plugins>
</build>
Alternatively, you can use the watch
goal to have the plugin watch your files and recompile on change:
mvn com.gitlab.haynes:libsass-maven-plugin:0.3.1:watch
MIT License.