lvh/holtz — Issue #9: Joiner processor
Author: lvh
Created: 2011-11-17 13:13:23+00:00
State: open

Programmers want to have lots of different CSS/JS/... files because that makes them easy to work with. Browsers want to see one big file because that's easier/faster to download (although that might have caching consequences).

\.*\.css(+.*\.css)*\: Join() | Minify()

Basically this means that a request for admin.css+base.css would take admin.css and base.css, merge them

This might be a problem if any particular part of the pipeline insists that a file actually exists before it can be served. Also, processors only see the previous producer which kind of sucks. I suppose we could mandate that something like Join is the first in the chain. Otherwise we could make it a fundamental feature or something.

Note that there's other tickets that want this behavior too: