Skip to content

Deraen/lein-sass4clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lein-sass4clj

Clojars Project

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 through sass4clj wrapper
    • Jsass requires Java 1.8.
  • For parallel boot task check boot-sass

Usage

: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.

About

Leiningen task to compile Scss

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published