title: Angular 6: Multiple configurations (twas environments)
body: <p>Trying to get angular-cli to recognise multiple configurations in <code>angular.json</code></p>
  
  <pre><code>C:\_dev\myapp&gt;ng serve --configuration development
  Configuration 'development' could not be found in project 'myapp'.
  Error: Configuration 'development' could not be found in project 'myapp'.
  </code></pre>
  
  <p>The snippet being:</p>
  
  <pre><code>    "configurations": {
          "production": {
            "fileReplacements": [
              {
                "replace": "src/environments/environment.ts",
                "with": "src/environments/environment.production.ts"
              }
            ],
            "optimization": true,
            "outputHashing": "all",
            "sourceMap": false,
            "extractCss": true,
            "namedChunks": false,
            "aot": true,
            "extractLicenses": true,
            "vendorChunk": false,
            "buildOptimizer": true
          },
          "development": {
            "fileReplacements": [
              {
                "replace": "src/environments/environment.ts",
                "with": "src/environments/environment.development.ts"
              }
            ],
            "optimization": false,
            "outputHashing": "all",
            "sourceMap": true,
            "extractCss": true,
            "namedChunks": true,
            "aot": false,
            "extractLicenses": false,
            "vendorChunk": true,
            "buildOptimizer": false
          }
        }
  </code></pre>
  
  <p><code>src/environments/environment.development.ts</code> does exist</p>
  
  <pre><code>ng serve --configuration production 
  </code></pre>
  
  <p>works fine</p>