Wildcard resource definitions?

Feb 5, 2010 at 9:15 PM

Hello,

Combres is terribly useful, but I think it would be just awesome if one could do something like this:

<resourceSets url="~/combres.axd">
    <resourceSet name="js" type="js">
        <resource path="~/js/*.js" recursive="true" />
    </resourceSet>
    <resourceSet name="css" type="css">
        <resource path="~/css/*.css" recursive="true" />
    </resourceSet>
</resourceSets>

Now that we finally are able to depart from the old school of "throw everything in a single file to keep the number of requests low", I'm harnessing the granularity Combres provides to organize my CSS and JS files in a way that makes the most sense from a developer point of view.

As an example, if I have a page MyPage.aspx that requires a ton of CSS rules to get the desired layout, I could put all those rules in a separate MyPage.css file and drop it in the /css folder, rebuild, and call it a day. This approach would make it much easier to work with when, later on, I need to change something, I can go straight to the specific CSS file rather than scrolling down for an hour or having to try luck with Ctrl+F on a single monster CSS file.

Anyhow, keep up this great work!

Coordinator
Feb 6, 2010 at 5:37 AM

Good idea, thanks for suggesting.  I've added a tracking ticket here for this http://combres.codeplex.com/WorkItem/View.aspx?WorkItemId=5959