moudy / broccoli-taco

Static Sites Powered by Broccoli
http://broccoli-taco.com/
94 stars 14 forks source link

Files in static folder are not copied. #19

Open marcenuc opened 9 years ago

marcenuc commented 9 years ago

First of all: broccoli-static-compiler is deprecated by broccoli-funnel. That is why I have replaced it in the dependencies.

However the reason for this patch is that, in my project, the static folder was empty.

I'm not sure if this is a bug in broccoli-funnel. However it looks like subsequent calls to the filter, inherit the options used in previous calls. We need then to be explicit on what to include because a filter on file names was set by previous calls to the filter.

michaellopez commented 9 years ago

@marcenuc Looking at the docs at broccolijs/broccoli-funnel they require a new instance of Funnel for each filtering. Maybe this is what is causing the bug you experience? In your patch you are just using return pickFiles function each time. Should be something similar to return new pickFiles. Try that instead.