title: How to migrate bundleConfig.cs from project asp.net mvc to asp.net core?
body: <p>I need to migrate bundleConfig from an old asp.net project mvc to asp.net core</p>
  
  <p>I added in startup.cs:</p>
  
  <pre><code>app.UseBundling (
                  // as we rebased the static files to / static (see UseStaticFiles ()),
                  // we need to pass this information to the bundling middleware as well,
                  // otherwise urls would be rewrited incorrectly
                  new BundlingOptions
                  {
                      StaticFilesRequestPath = "/static"
                  },
                  bundles =&gt;
                  {
                      bundles.AddJs ("/bundles /jquery")
                          .Include ("/Scripts/jquery-{version}.js");
  
                      bundles.AddCss ("/bundles/jquery")
                          .Include ("/Scripts/jquery-{version}.js");
  
                      // we use LESS in this demo
                      bundles.AddCss ("/site.css")
                          .Include ("/less/site.less");
  
                      // defines a Javascript bundle containing your Vue application and components
                      bundles.AddJs ("/app.js")
                          .Include ("/js/components /*.Js")
                          .Include ("/js/app.js");
                  });
  </code></pre>