Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deraen/lein-sass4clj
Leiningen task to compile Scss
https://github.com/deraen/lein-sass4clj
Last synced: about 1 month ago
JSON representation
Leiningen task to compile Scss
- Host: GitHub
- URL: https://github.com/deraen/lein-sass4clj
- Owner: Deraen
- License: epl-1.0
- Created: 2015-09-25T19:50:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-25T15:17:09.000Z (almost 9 years ago)
- Last Synced: 2024-10-07T17:49:30.926Z (about 1 month ago)
- Language: Clojure
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# lein-sass4clj
[![Clojars Project](http://clojars.org/deraen/lein-sass4clj/latest-version.svg)](http://clojars.org/deraen/lein-sass4clj)# [Moved to Deraen/sass4clj](https://github.com/Deraen/sass4clj)
Leiningen task to compile Less.
* Provides the `sass4clj` task
* For each `.scss` or `.sass` not starting with `_` in configured source-paths creates equivalent `.css` file.
* Uses [jsass](https://github.com/bit3/jsass) through [sass4clj](https://github.com/Deraen/sass4clj) wrapper
* Jsass requires Java 1.8.
* For parallel [boot](http://boot-clj.com/) task check [boot-sass](https://github.com/Deraen/boot-sass)## Usage
```clj
:sass4clj {:source-paths ["src/scss"]
:target-path "target/generated/public/css"
; optional, valid values: :nested :compact :expanded :compressed
:output-style :nested}
```## Features
- Load imports from classpath
- Loading order. `@import "{name}";` at `{path}`.
1. check if file `{path}/{name}.scss` exists
2. try `(io/resource "{name}.scss")`
3. try `(io/resource "{path}/{name}.scss")`
4. check if webjars asset map contains `{name}`
- Resource `META-INF/resources/webjars/{package}/{version}/{path}` can be referred using `{package}/{path}`
- E.g. `bootstrap/scss/bootstrap.scss` => `META-INF/resources/webjars/bootstrap/4.0.0-alpha/scss/bootstrap.scss`
- You should be able to depend on `[org.webjars.bower/bootstrap "4.0.0-alpha"]`
and use `@import "bootstrap/scss/bootstrap";`## License
Copyright © 2015 Juho Teperi
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.