Enable bundling and minification in debug mode in ASP.NET MVC 4

前端 未结 4 1698
梦谈多话
梦谈多话 2020-12-07 13:25

I can\'t believe I cannot find other questions about this, but: how does one enable bundling in debug mode? I know how it is enabled for release mode, but in debug

4条回答
  •  抹茶落季
    2020-12-07 14:15

    The official MS site states while Debugging it's not possible to enable it. I think the reason is, that it's easier to debug while it's disabled. If you want to test the Impact on your application you have to set in the Web.config

    @Hebe: To Quote the MS page

    It's easy to debug your JavaScript in a development environment (where the compilation Element in the Web.config file is set to debug="true" ) because the JavaScript files are not bundled or minified.

提交回复
热议问题