user512737
user512737

Reputation:

MVC4 new bundling/minification feature

I can't seem to get the new bundling/minification feature to work in my project. I have this in my _Layout.cshtml.

 <link href="@Url.Content("~/Content/themes/" + ViewBag.SiteEntity.LayoutName + "/css/css")" rel="stylesheet" /> 

this gives me the link href="/Content/themes/FixedLayout21/css/css" rel="stylesheet" which is the correct path, but its not displaying in the browser. Any iodeas?

Upvotes: 3

Views: 755

Answers (1)

Erik Funkenbusch
Erik Funkenbusch

Reputation: 93424

Just to close out the question, add the following to the Application_Start() method of global.asax.

BundleTable.Bundles.EnableDefaultBundles();

Upvotes: 2

Related Questions