1. Install Microsoft.AspNet.Web.Optimization using NuGet
2. Add “<add namespace="System.Web.Optimization"/>” to both web.configs (root and view)
3. Call the RegisterBundles() function from Application_Start() in your global.asax.cs:
[code language=”csharp”]
using System.Web.Optimization;
protected void Application_Start() {
…
BundleConfig.RegisterBundles(BundleTable.Bundles);
…
}
[/code]
http://stackoverflow.com/questions/10951669/mvc-4-scripts-does-not-exist