Deraen / sass4clj

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

File watching (sass4clj auto) only works for top-level stylesheets? #21

Closed vemv closed 5 years ago

vemv commented 7 years ago

Hi there,

our SCSS structure is the following:

image

Where sass/themes/dark.scss and sass/themes/lite.scss are the "top-level" stylesheets, everything else being dependencies of them.

This is reflected in our project.clj:

:source-paths ["sass/themes"]

This setup compiles correctly.

The problem is, if I edit any stylesheet that is not a top-level one, sass4clj auto will not detect the changes. I'd have to touch them manually (or with some script) for a recompile to be triggered.

Is this a bug in the auto implementation? Or maybe is our scss structure improvable?

Cheers - Victor

Deraen commented 5 years ago

Looks like the dependent files are outside of :source-paths. Only directories in :source-paths are watched for changes, so :source-paths ["sass"] should work.

If this wasn't the case, please comment and reopen.