how to change the dist-folder path in angular-cli after 'ng build'

By : cuppy
Source: Stackoverflow.com
Question!

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

By : cuppy


Answers

When building you can modify the base tag (

By : tony


The only thing that worked for me was to change outDir in in both angular-cli.json AND src/tsconfig.json.

I wanted my dist-folder outside the angular project folder. If I didn't change the setting in src/tsconfig.json as well, Angular CLI would throw warnings whenever I build the project.

Here are the most important lines ...

// angular-cli.json
{
  ...
  "apps": [
    {
      "outDir": "../dist",
      ...
    }
  ],
  ...
}

And ...

// tsconfig.json
{
  "compilerOptions": {
    "outDir": "../../dist/out-tsc",
    ...
  }
}
By : NinjaFart


This video can help you solving your question :)
By: admin