mwrock / RequestReduce

Instantly makes your .net website faster by reducing the number and size of requests with almost no effort.
www.requestreduce.org
Apache License 2.0
228 stars 49 forks source link

Combine without minifying #199

Closed goodeye closed 12 years ago

goodeye commented 12 years ago

Hi, I'd like to be able to combine certain files without minifying. This is mainly for scripts already minified, e.g., jquery...min.js, plug-ins, and 3rd party vendor scripts. I'm not sure if RR "leaves them alone" or re-minifies them. By just combining, it's guaranteed to be exactly as published, which is a comfort factor, and avoids squabbling with the vendors.

Perhaps this could be a filter similar to the AddFilter() method.

A related issue describes all-or-nothing at config-time: https://github.com/mwrock/RequestReduce/issues/176, while I'm looking for some just combined, and the rest minify-and-combine as usual.

If there's a way to do this already, then great.

Thanks, Bob

mwrock commented 12 years ago

Hi. I'm afraid I don't have plans to add that in. If it was really something you wanted to do you could come up with a solution like the one you saw in 176 but add your own filtering list so that whatever is not in the list goes through the normal minifier. Its really the combining that is riskier, the minification is delegated solely to the MS ajax minifier. I have not seen issues with double minification and where there have been bugs in the minification, the ajaxmin guys are very quick in fixing.

That all said, if a pull request comes through to add this filtering, I'd be happy to include it!

Matt