|
|
Is there a way to use razorgenerator with the minification option?
|
|
Coordinator
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.
|
|
|
|
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..
|
|
Coordinator
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.
|
|
|
|
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..
|
|
|
|
So is it possible to minify the precompiledview with custom razor factory? or any other way?
|
|
Coordinator
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.
|
|
|
|
I will look forward to that!
|
|
|
|
Did anyone look into this? I would be a nice option to have available.
|
|