Bundling not working in MVC5 when I turn on release mode

后端 未结 7 1673
耶瑟儿~
耶瑟儿~ 2020-12-15 03:46

I have the following bundle configured in BundleConfig.cs:

bundles.Add(new StyleBundle(\"~/bundles/css\").Include(
                      \"~/assets/bootstrap         


        
7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-15 04:13

    This is the default behavior.

    Bundling and minification is enabled or disabled by setting the value of the debug attribute in the compilation Element in the Web.config file.

    http://www.asp.net/mvc/overview/performance/bundling-and-minification

    enter image description here

提交回复
热议问题