I would like to use angular-cli with asp.net core and I need to know how I can change the path of the dist folder
Angular CLI now uses environment files to do this.
First, add an environments section to the angular-cli.json
Something like :
{
"apps": [{
"environments": {
"prod": "environments/environment.prod.ts"
}
}]
}
And then inside the environment file (environments/environment.prod.ts in this case), add something like :
export const environment = {
production: true,
"output-path": "./whatever/dist/"
};
now when you run :
ng build --prod
it will output to the ./whatever/dist/ folder.