Share via

WebMarkupMin.AspNet4.Mvc not working

Ga chống thấm LoveMama.vn 1 Reputation point
2023-08-22T15:05:09.91+00:00

My web: lovemama(.)vn Using WebMarkupMin.AspNet4.Mvc, but WebMarkupMin.AspNet4.Mvc not working in View.

Am using new version: 2.12.0 and HTML not minify :(

Hellp.

z4627248884311_88f8b877b899e91d073f7ede1514bcb0

z4627242814841_1730b3554e1cd20d5bf5b1a86c788f65

z4627246307369_98cf3054803572efea99d3dced32e90e (1)

Developer technologies | ASP.NET | Other

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 30,211 Reputation points Microsoft External Staff
    2023-08-23T03:35:36.14+00:00

    Hi @Ga chống thấm LoveMama.vn,

    You need to edit the Web.config file, change debug="true" to debug="false".

    <system.web>
      <authentication mode="None"/>
      <compilation debug="false" targetFramework="4.8"/>
      <httpRuntime targetFramework="4.8"/>
    </system.web>
    

    User's image

    Then use "View Page Source" to view.

    • Right-click on the web page and choose View Page Source.
    • Shortcut: Press Ctrl+U (Windows PC) or Command+Option+U (Mac).

    User's image

    Here is my test:

    Before:

    User's image

    After:

    User's image

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.