MVC ASP.NET minify Views.cshtml

I have two simple questions:

  • Is there a way to minimize the file .cshtmlas a JavaScript file or CSS file?
  • Are there any performance improvements if we minimize all the representations in the project?
+6
source share
3 answers

This tool is a Razor compiler that minimized HTML in pre-time:

https://github.com/jitbit/HtmlOptimizerMvc4

+1
source

For anyone interested in this, I have built a simple HTML thumbnail library that can be used with MVC 5:

https://github.com/tompazourek/RazorHtmlMinifier.Mvc5

, , . ( ).

+2
0
source

Source: https://habr.com/ru/post/1530034/


All Articles