Using Angular-CLI build to copy a file / directory

For those wanting to copy files outside the src folder:

In example below I am copying all files from myfolder to the root dist folder.

In the angular-cli.json file (3rd line):

"assets": [
   { "glob": "**/*", "input": "./assets/", "output": "./assets/" },
   { "glob": "favicon.ico", "input": "./", "output": "./" },
   { "glob": "**/*", "input": "../myfolder", "output": "./" }
],

Angular-cli.json Documentation here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)