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: 25 days ago
JSON representation
Maven plugin for wrapping the sass cli
- Host: GitHub
- URL: https://github.com/HebiRobotics/sass-cli-maven-plugin
- Owner: HebiRobotics
- License: apache-2.0
- Created: 2022-07-29T19:18:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T15:22:57.000Z (11 months ago)
- Last Synced: 2024-08-04T00:03:23.851Z (4 months ago)
- Topics: css, javafx, maven, maven-plugin, sass
- Language: Java
- Homepage:
- Size: 40 KB
- Stars: 13
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.adoc
- License: LICENSE
Awesome Lists containing this project
- aboutfx - SASS CLI Maven Plugin - cli-maven-plugin?style=social) | `#build`, `#maven` | A thin wrapper around the [SASS](https://sass-lang.com/dart-sass) command line interface for generating CSS files, so you can use CSS preprocessor to create your stylesheets with comfort | (Community / Tools)
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
```