boot-sass
December 25, 2015 · View on GitHub
Moved to Deraen/sass4clj
Boot task to compile sass.
- Provides the
sasstask - For each
.scssor.sassfile not starting with_in fileset creates equivalent.cssfile. - Uses jsass through sass4clj wrapper
- Jsass requires Java 1.8.
- For parallel leiningen plugin check lein-sass4clj
Usage
To create css file public/css/main.css have the scss file on path public/css/main.scss or use sift task to move the css file:
(comp (sass) (sift :move {#"main.css" "public/css/main.css"}))
Features
- 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"; - Use boot debug to find what is being loaded:
boot -vvv scss
- Loading order.
License
Copyright © 2014-2015 Juho Teperi
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.