I'm trying to integrate Rejuice (github page is here) to my asp.net mvc project to combine js files. I downloaded it via nuget. It successfully added references and configured web.config file.
In global asax Application_Start I configured it as below:
OnRequest.ForJs("~/Combined.js")
.Combine
.FilesIn("~/Scripts/").Matching("*.js")
.Configure();
OnRequest.ForJs("~/Combined.css")
.Combine
.FilesIn("~/Style/").Matching("*.css")
.Configure();
In master page:
<%= Rejuiced.JsFor("~/Combined.js") %>
<%= Rejuiced.CssFor("~/Combined.css")%>
Running project in release mode results in downloading all the js and css files seperately. Running the site under IIS didn't help either. Isn't it supposed to combine and download only 2 files, one for js and another for css? What can cause this problem