Bundling resources via bundle.config vs BundleConfig.cs in ASP.NET 4.5 WebForms

前端 未结 3 575
别那么骄傲
别那么骄傲 2020-12-09 14:47

Regarding ASP.NET 4.5\'s new System.Web.Optimization / Microsoft.AspNet.Web.Optimization:

Can anyone explain the difference in the use of bundling resources using th

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-09 15:19

    this documentation explains it all better than I ever could

    http://www.asp.net/mvc/tutorials/mvc-4/bundling-and-minification

    One of the nicest things is this:

    The bundling framework follows several common conventions such as:

    Selecting “.min” file for release when “FileX.min.js” and “FileX.js” exist.

    Selecting the non “.min” version for debug. Ignoring “-vsdoc” files (such as jquery-1.7.1-vsdoc.js), which are used only by IntelliSense.

提交回复
热议问题