pandeiro / boot-http

A simple HTTP serve task for the Boot build tool
62 stars 34 forks source link

Cannot serve sift moved files #70

Open arichiardi opened 6 years ago

arichiardi commented 6 years ago

Hello @pandeiro!

I have identified a problem with the concept of "serving from the fileset". In my app, I am shuffling things around for various reasons so something like the following is pretty common:

(comp
   (sift :include #{#"semantic-ui-less/_site"} :invert true) ;; sample, not needed
   (sift :move {#"semantic-ui-less/definitions/" "css/definitions/"
                #"semantic-ui-less/themes/" "css/themes/"    ;; need this here for less
                #"semantic-ui-less/semantic.less" "css/semantic.less"
                #"semantic-ui-less/theme.less" "css/theme.less"})
   (css/lessc :less-path "css/blog.less")
   (sift :move {#"css/" "public/css/"}))

This basically brings every css resource I am interested in under "public" so that then I can do:

(serve :resource-root "public")

I found after some debugging that files shuffled with with :move are not served at all. I was wondering if there is something I need to add (custom handler?) and if this is a known problem.

Thanks a lot!