Deraen / sass4clj

SASS compiler for Clj, Lein and Boot, using Libsass Java wrapper
70 stars 16 forks source link

It tries to compile anything it can lay its hands on #17

Closed agzam closed 3 years ago

agzam commented 8 years ago

If I for example have sass files that import mixins from a library in npm and I pull node_modules into fileset:

e.g:

(deftask add-node-modules []
  (with-pre-wrap fileset
(let [nm (clojure.java.io/file "node_modules")]
  (when-not (and (.exists nm) (.isDirectory nm))
    (dosh "npm" "install"))
  (-> fileset
    (add-resource (clojure.java.io/file ".") :include #{#"^node_modules/"})
    commit!))))

thanks @anmonteiro

boot-sass tries to compile things in node_modules. Definitely not something desired

Deraen commented 3 years ago

Both lein and boot tasks include "inputs" option to select only certain files to compile.