AUTOMATICALLY REMOVE HTML COMMENTS IN RELEASE MODE

Lillian Martin

Total Post:27

Points:189
Posted by  Lillian Martin
 1223  View(s)
Ratings:
Rate this:

I am trying to find a way to automatically remove HTML comments in release mode for two main reasons

  • Minification: there is a lot of comments in some pages
  • Comments contain development notices and TODO lists (which are exposed to end user).

I am using ASP.NET MVC and looking for something in the same spirit as the bundling and minification features.

  1. Anurag Sharma

    Post:40

    Points:280
    Re: Automatically remove HTML comments in Release mode

    @*

    This is a server side

    multiline comment

    *@

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!