ASP.NET Web Optimization - Minimizing without bundling

Can ASP.NET Web Optimization be used to minimize without binding?

Let's say I have an Example.cshtml page and the corresponding javaScript file for this Example.js page. I would like to be able to do something like @Scripts.Render("~/Scripts/Views/Example.js") , which will produce a miniature file if it is not in debug mode. I could, of course, support many separate JavaScript files to do this, but it seems like unnecessary work.

Of course, there are other javaScript compression solutions, but I think the only approach with runtime compression is the best way.

+4
source share
1 answer

You will need to create a single-file package to accomplish this for the time being.

+1
source

All Articles