title: Minifying issue in ASP.NET Core application
body: <p>In asp.net core application I have <code>bundleconfig.json</code> file like below</p>
  
  <pre><code>[
    {
      "outputFileName": "wwwroot/css/site.min.css",
      "inputFiles": [
        "wwwroot/css/site.css"
      ]
    },
    {
      "outputFileName": "wwwroot/js/site.min.js",
      "inputFiles": [
        "wwwroot/js/site.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      }
    },
    {
      "outputFileName": "wwwroot/js/home.min.js",
      "inputFiles": [
        "wwwroot/js/home.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      }
    },      
    {
      "outputFileName": "wwwroot/js/util.min.js",
      "inputFiles": [
        "wwwroot/js/util.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      }
    },
    {
      "outputFileName": "wwwroot/js/profile.min.js",
      "inputFiles": [
        "wwwroot/js/profile.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      }
    }, 
    {
      "outputFileName": "wwwroot/js/documentdetailmodule.min.js",
      "inputFiles": [
        "wwwroot/js/documentdetailmodule.js"
      ],
      "minify": {
        "enabled": true,
        "renameLocals": true
      }
    },
    {
      "outputFileName": "wwwroot/css/navbar.min.css",
      "inputFiles": [
        "wwwroot/css/navbar.css"
      ]
    }
  ]
  </code></pre>
  
  <p>when I publish the application all the files get minified except <code>documentdetailmodule.js</code>. The path and name are correct. After publishing i checked <code>...\Release\PublishOutput\wwwroot\js</code> folder and i noticed <code>documentdetailmodule.js</code> file is there however <code>documentdetailmodule.min.js</code> is not there.  </p>
  
  <p>How do check if there are any errors during minification ( i don't see it in output window)</p>
  
  <p>I am using VS 2017</p>
  
  <p><strong>Update 1</strong><br>
  Note that <code>documentdetailmodule.js</code> file is newly added to the solution. and then updated <code>bundleconfig.js</code> accordingly </p>
  
  <p><strong>Update 2</strong><br>
  So after further review, it turned out visual studio actually not minifying any file ( .js or .css). The reason I see a minified version of other files because those files already have their minified version under <code>wwwroot/js</code> folder and publishing action just copies those files.    </p>
  
  <p>Typically VS 2017 creates a minified version as soon as you save the file. I am not sure what has changed in Visual Studio that causing not to minify file. </p>