#Cant change output path through angular.json

4 messages · Page 1 of 1 (latest)

viral lantern
#

I am currently trying to modify my angular.json file to change the output path that it builds to. I have tried multiple attempts to do this but none of them seem to actually change the build path.

The first thing I tried doing was was adding

  "My-App": {
    "architect": {
      "build": {
        "options": {
          "outputPath":{
            "base": "../../dist/my-app"
          }
        }
      }
    }
  }
}```
And that prevent it form being built completely and gave me an error saying "Data path "" must NOT have additional properties(outputPath)

I have also tried 
```"projects": {
  "My-App": {
    "architect": {
      "build": {
        "options": {
          "outputPath": "../../dist/my-app"
          }
        }
      }
    }
  }
}```
And got the same message as before

I also tried 
```"projects": {
  "My-App": {
    "architect": {
      "options": {
        "outputPath": "../../dist/my-app"
        }
      }
    }
  }
}```
This one actually allowed the project to build with no errors however the build directory didnt change and built in `projects/my-app/dist/`

Can someone please tell me what I need to do in order to change the build path because I have completely hit a brick wall on this
dense solar
#

The last one worked for me on a new v18 project.

#

You should check if you made any change on the configuration except from that.

viral lantern