MVC4 - Bundling does not work when optimizations are set to true

后端 未结 6 2016
误落风尘
误落风尘 2020-12-02 10:07

I wonder what I don\'t do correct here. I am using ASP.NET C# MVC4 and I want to take use of new css/js optimization feature.

Here is my HTML part

@S         


        
6条回答
  •  难免孤独
    2020-12-02 10:28

    Don't forget to ensure the bundling HttpModule is there.

      
        
        
    
    

    This stung me first time around. Not sure if the necessary config should be added by the NuGet package, but it wasn't in my case.

提交回复
热议问题