After manually upgrading an ASP.NET MVC project to MVC4 using these instructions, how do you then set up the new CSS and JavaScript asset bundling and minimization features of the ASP.NET Web Optimization Framework in MVC4? The default templates have this all set up, but how do you do it by hand?
After manually upgrading an ASP.NET MVC project to MVC4 using these instructions , how
Share
Install-Package Microsoft.AspNet.Web.Optimizationinto the NuGet console).<system.webServer>, allowing the minified bundles to be served with extensionless URLs.@Styles.Render("~/Content/css")and@Scripts.Render("~/bundles/jquery"), replacing the parameters with the names of the bundles you added to BundleConfig.cs. Make sure not to name any of the bundles the same as folders in your project.You should now be all set – read up on how to use the full featureset here: http://www.asp.net/mvc/overview/performance/bundling-and-minification