Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/HebiRobotics/sass-cli-maven-plugin

Maven plugin for wrapping the sass cli
https://github.com/HebiRobotics/sass-cli-maven-plugin

css javafx maven maven-plugin sass

Last synced: 11 days ago
JSON representation

Maven plugin for wrapping the sass cli

Lists

README

        

# sass-cli-maven-plugin

This Maven plugin is a thin wrapper around the [Sass](https://sass-lang.com/) commandline interface for generating CSS files. It downloads an appropriate native executable and executes it with the specified arguments. Please refer to [Sass CLI](https://sass-lang.com/documentation/cli/dart-sass) for documentation.

## Maven Example

```xml



us.hebi.sass
sass-cli-maven-plugin
1.0.3

1.62.0

${project.basedir}/src/scss/input.scss:${project.basedir}/target/classes/output.css
${project.basedir}/src/scss/input2.scss:${project.basedir}/target/classes/output2.css
--no-source-map




sass-exec
generate-resources

run




```

## Enabling Watch Mode

The `sass` CLI tool includes a `--watch` mode that continuously triggers a re-compilation whenever a used file changes. You can add the argument by running the `sass:watch` goal, or by specifying the `sass.watch` property.

```shell
# goal
mvn sass-cli:watch

# property
mvn package -Dsass.watch
```

## Sass Version

Sass updates more often than this plugin, so it is recommended to manually specify the latest version. You can do this via the `sassVersion` argument or the `sass.version` property. Available versions can be found on [Github Releases](https://github.com/sass/dart-sass/releases/).

```xml

1.62.0

```



The latest release is


Pub version