title: .NET Core2.0 bundleconfig.json not working
body: <p>I'm struggling trying to get bundling to work in a Core 2.0 web application.  I have the following in my <strong>bundleconfig.json</strong> file:</p>
  
  <pre><code>[
    {
      "outputFileName": "wwwroot/css/site.min.css",
      "inputFiles": [
        "wwwroot/css/site.css"
      ]
    },
    {
      "outputFileName": "wwwroot/css/bootstrap.min.css",
      "inputFiles": [
        "wwwroot/lib/bootstrap/dist/css/bootstrap.css",
      ]
    },
    {
      "outputFileName": "wwwroot/css/jquery-datatables.min.css",
      "inputFiles": [
        "wwwroot/lib/jquery/jquery-datatables/datatables.css",
        "wwwroot/lib/jquery/jquery-datatables/Responsive-2.2.1/css/responsive.dataTables.css"
      ]
    },
    {
      "outputFileName": "wwwroot/js/site.min.js",
      "inputFiles": [
        "wwwroot/js/site.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      },
      "sourceMap": false
    },
    {
      "outputFileName": "wwwroot/js/jquery.min.js",
      "inputFiles": [
        "wwwroot/lib/jquery/dist/jquery.js",
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      },
      "sourceMap": false
    },
    {
      "outputFileName": "wwwroot/js/bootstrap.min.js",
      "inputFiles": [
        "wwwroot/lib/bootstrap/dist/js/bootstrap.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      },
      "sourceMap": false
    },
    {
      "outputFileName": "wwwroot/js/jquery-datatables.min.js",
      "inputFiles": [
        "wwwroot/lib/jquery/jquery-datatables/datatables.js",
        "wwwroot/lib/jquery/jquery-datatables/Responsive-2.2.1/js/dataTables.responsive.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      },
      "sourceMap": false
    }
  ]
  </code></pre>
  
  <p>I installed the BuildBundlerMinifier NugGet package. When I build the project i see the bundleconfig.json file being processed.<br>
  I added the following to <strong>_Layout.cshtml</strong>:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0" /&gt;                        
      &lt;environment include="Development,Staging,Production"&gt;
          &lt;link rel="stylesheet" href="~/wwwroot/css/site.min.css" /&gt;
          &lt;link rel="stylesheet" href="~/wwwroot/css/bootstrap.min.css" /&gt;
          &lt;link rel="stylesheet" href="~/wwwroot/css/jquery-datatables.min.css" /&gt;            
      &lt;/environment&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;environment include="Development,Staging,Production"&gt;
          &lt;script src="~/wwwroot/js/site.min.js"&gt;&lt;/script&gt;
          &lt;script src="~/wwwroot/js/jquery.min.js"&gt;&lt;/script&gt;
          &lt;script src="~/wwwroot/js/bootstrap.min.js"&gt;&lt;/script&gt;
          &lt;script src="~/wwwroot/js/jquery-datatables.min.js"&gt;&lt;/script&gt;            
      &lt;/environment&gt;
      @RenderSection("Scripts", required: true)
  &lt;/body&gt;
  </code></pre>
  
  <p>When I run the application the resources aren't loaded. I'm getting the following errors:</p>
  
  <blockquote>
    <p>Loading failed for the <code>&lt;script&gt;</code> with source “<a href="https://localhost:44301/wwwroot/js/site.min.js" rel="noreferrer">https://localhost:44301/wwwroot/js/site.min.js</a>”.<br>
    Loading failed for the <code>&lt;script&gt;</code> with source “<a href="https://localhost:44301/wwwroot/js/jquery.min.js" rel="noreferrer">https://localhost:44301/wwwroot/js/jquery.min.js</a>”.<br>
    Loading failed for the <code>&lt;script&gt;</code> with source “<a href="https://localhost:44301/wwwroot/js/bootstrap.min.js" rel="noreferrer">https://localhost:44301/wwwroot/js/bootstrap.min.js</a>”.<br>
    Loading failed for the <code>&lt;script&gt;</code> with source “<a href="https://localhost:44301/wwwroot/js/jquery-datatables.min.js" rel="noreferrer">https://localhost:44301/wwwroot/js/jquery-datatables.min.js</a>”</p>
  </blockquote>
  
  <p>Can someone please help me?</p>