title: MVC Bundling Not Working
body: <p>I am working on a small mvc project, i have declared a bundle in BundleConfig.cs like this</p>
  
  <p>//javascript bundle</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/Layout1JS").Include(
                          "~/Content/Public/js/jquery.min.js",
                          "~/Content/Public/js/bootstrap.min.js",
                          "~/Content/Public/js/jquery.isotope.min.js",
                          "~/Content/Public/js/jquery.Photo.js",
                          "~/Content/Public/js/easing.js",
                          "~/Content/Public/js/jquery.lazyload.js",
                          "~/Content/Public/js/jquery.ui.totop.js",
                          "~/Content/Public/js/nav.js",
                          "~/Content/Public/js/sender.js",
                          "~/Content/Public/js/jquery.slider-min.js",
                          "~/Content/Public/js/custom.js"));
  
  
  //css bundle
  bundles.Add(new StyleBundle("~/Content/Public/css").Include(
                          "~/Content/Public/css/main.css"));
  </code></pre>
  
  <p>In my _Layout.cshml in the head section i have entered:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;test&lt;/title&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta name="description" content=""&gt;
      &lt;meta name="author" content=""&gt;
  
      &lt;!-- LOAD CSS FILES --&gt;
      @Styles.Render("~/Content/Public/css", "~/Content/css")
  
      &lt;!-- LOAD JS FILES --&gt;
  
  
      @Scripts.Render("~/bundles/Layout1JS")
  
  &lt;/head&gt;
  </code></pre>
  
  <p>In my application_start i have:</p>
  
  <pre><code>BundleTable.EnableOptimizations = true; 
  </code></pre>
  
  <p>and web.config</p>
  
  <pre><code>&lt;compilation debug="true" targetFramework="4.0"&gt;
  </code></pre>
  
  <p>This gave me bit of a headache trying to figure why the bundling isnt working specially for the javascript. Some one please advise</p>