Automatically remove HTML comments in Release mode

Total Post:27

Points:189
 1454  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. 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!