precompilation with minification

Jun 26, 2012 at 7:46 AM

Is there a way to use razorgenerator with the minification option?


Jun 26, 2012 at 10:44 AM

Can you be more specific what minification option you are referring to? Generally, your views should work the same way when precomiled as when not precompiled.

Jun 26, 2012 at 11:32 AM

RazorGenerator generates a view class code to build..before generating it, RazorGenerator does not do any process like minification on "cshtml" content..if it does minification at that time, I think the best optimized html minification is done..

Jun 26, 2012 at 3:32 PM

Granted we could make this work with some library out there, but I guess this should be an ask from from the Razor parser. The precompilation code tries to keep the generated output as close as to what the razor engine does on its own.

Jun 27, 2012 at 7:28 AM

Yes, I tried a library called "Meleze.Web" for minification by changing the razor host factory in web.config(mvc 3), but, it does not work with razorgenerator custom tool and/or PrecompiledMvcEngine..I think Meleze.Web need physical and not precompiled views..

Jun 27, 2012 at 8:08 AM

So is it possible to minify the precompiledview with custom razor factory? or any other way?

Jun 27, 2012 at 7:27 PM

Not sure, I haven't seen how it works as yet. I'll  play around with it some time this week.

Jun 29, 2012 at 6:55 AM

I will look forward to that!

Apr 11, 2013 at 2:45 PM
Did anyone look into this? I would be a nice option to have available.