libsass-maven-plugin

This project is a mirror of https://gitlab.com/haynes/libsass-maven-plugin

MIT License

Stars
5

Libsass Maven Plugin pipeline status Maven Central

Libsass Maven Plugin uses libsass to compile sass files. Uses jsass to interface with C-library.

Compability

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

This project was forked from https://github.com/warmuuh/libsass-maven-plugin version 0.2.10-libsass_3.5.3

Installation

libsass-maven-plugin is available on central-repository since version 0.2.11

Usage

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

Configuration Elements

License

MIT License.