Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/123haynes/libsass-maven-plugin
This project is a mirror of https://gitlab.com/haynes/libsass-maven-plugin
https://github.com/123haynes/libsass-maven-plugin
java libsass maven sass scss
Last synced: 21 days ago
JSON representation
This project is a mirror of https://gitlab.com/haynes/libsass-maven-plugin
- Host: GitHub
- URL: https://github.com/123haynes/libsass-maven-plugin
- Owner: 123Haynes
- License: mit
- Created: 2019-11-01T14:25:11.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-09T01:03:13.000Z (28 days ago)
- Last Synced: 2024-10-15T16:22:49.827Z (21 days ago)
- Topics: java, libsass, maven, sass, scss
- Language: Java
- Size: 6.32 MB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Libsass Maven Plugin [![pipeline status](https://gitlab.com/haynes/libsass-maven-plugin/badges/main/pipeline.svg)](https://gitlab.com/haynes/libsass-maven-plugin/commits/main) [![Maven Central](https://img.shields.io/maven-central/v/com.gitlab.haynes/libsass-maven-plugin.svg)](https://mvnrepository.com/artifact/com.gitlab.haynes/libsass-maven-plugin)
==========Libsass Maven Plugin uses [libsass](http://github.com/hcatlin/libsass) to compile sass files.
Uses [jsass](https://gitlab.com/jsass/jsass) to interface with C-library.## Compability
This plugin only works with 64bit OS, because the upstream library [jsass](https://gitlab.com/jsass/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.11Usage
-----
Configure plugin in your pom.xml:```
com.gitlab.haynes
libsass-maven-plugin
0.3.1
generate-resources
compile
${basedir}/src/main/sass/
${basedir}/target/
${basedir}/src/main/sass/plugins/
```
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
----------------------
Element
Default value
Documentation
outputPath
${project.build.directory}
The directory in which the compiled CSS files will be placed.
inputPath
src/main/sass
The directories from which the source.scss
files will be read, ';'-separated. These directories will be
traversed recursively, and all.scss
files found in these directories or subdirectories
will be compiled.
includePath
null
Additional include path, ';'-separated
outputStyle
nested
Output style for the generated css code. One ofnested
,expanded
,
compact
,compressed
.
generateSourceComments
false
Emit comments in the compiled CSS indicating the corresponding source line. The default
value isfalse
.
generateSourceMap
true
Generate source map files. The generated source map files will be placed in the directory
specified bysourceMapOutputPath
.
sourceMapOutputPath
${project.build.directory}
The directory in which the source map files that correspond to the compiled CSS will be placed
omitSourceMapingUrl
false
Prevents the generation of thesourceMappingUrl
special comment as the last
line of the compiled CSS.
embedSourceMapInCss
false
Embeds the whole source map data directly into the compiled CSS file by transforming
sourceMappingUrl
into a data URI.
embedSourceContentsInSourceMap
false
Embeds the contents of the source.scss
files in the source map file instead of the
paths to those files
inputSyntax
scss
Switches the input syntax used by the files to eithersass
orscss
.
precision
5
Precision for fractional numbers
enableClasspathAwareImporter
false
Enables classpath aware importer which make possible to@import
files from classpath and WebJars.
For classpath resources use@import 'path/to/resource/in/classpath';
.
For WebJar resources a shortcut can be used:@import '{package}/{path}';
imports resource
META-INF/resources/webjars/{package}/{version}/{path}
.
Warning:
Due to a limitation in jsass, this currently only works with scss files.
failOnError
true
should fail the build in case of compilation errors.
copySourceToOutput
false
copies all files from source directory to output directory
License
-------MIT License.