Bundling not working in MVC5 when I turn on release mode

后端 未结 7 1664
耶瑟儿~
耶瑟儿~ 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 03:59

    The default Release Web.config transform removes the debug attribute like so:

    
    

    However, this will not cause the expected bundling behavior to occur. Instead, you must create a transform that literally sets the debug attribute to "false", like so:

    
    

提交回复
热议问题