Leiningen task to compile Less.
- Provides the
sass4cljtask - For each
.scssor.sassnot starting with_in configured source-paths creates equivalent.cssfile. - Uses jsass through sass4clj wrapper
- Jsass requires Java 1.8.
- For parallel boot task check boot-sass
:sass4clj {:source-paths ["src/scss"]
:target-path "target/generated/public/css"
; optional, valid values: :nested :compact :expanded :compressed
:output-style :nested}- Load imports from classpath
- Loading order.
@import "{name}";at{path}.- check if file
{path}/{name}.scssexists - try
(io/resource "{name}.scss") - try
(io/resource "{path}/{name}.scss") - 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
- check if file
- You should be able to depend on
[org.webjars.bower/bootstrap "4.0.0-alpha"]and use@import "bootstrap/scss/bootstrap";
- Loading order.
Copyright © 2015 Juho Teperi
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.