jetheredge/SquishIt — pull request #88 by schourode (2011-10-30 10:33:40+00:00)
Title: Support for including directories of CSS/JS files

When dealing with medium and large size web project, I find maintenance easier when the source code is split into many smaller files. I often have 10, 20 or even more CSS files each defining the styles for an isolated component on the page. SquishIt allows me to do this without having to worry about the overhead of many HTTP requests, bundling all CSS into one file on-the-fly. However, I often find myself forgetting to add a newly created CSS or JS file to my bundle registrations.

This update allows both CSS and JavaScript bundles to automatically include all files from a directory, by simply adding the directory to the bundle:

Bundle.Css().Add("/content/css").Render()
Bundle.JavaScript().Add("/content/js").Render()

As usual, in debug mode each file will be linked separately, and in release mode the files will be combined.