Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular copy folder to dist

// Copy files from a location relative to the project's root to relative of the build output folder
// In the example below I am copying all files from myfolder to the root dist folder.
// For angular < 9 : angular-cli.json, for > 9: angular.json

"assets": [
   { "glob": "**/*", "input": "./assets/", "output": "./assets/" },
   { "glob": "favicon.ico", "input": "./", "output": "./" },
   { "glob": "**/*", "input": "../myfolder", "output": "./" }
],
Source by newbedev.com #
 
PREVIOUS NEXT
Tagged: #angular #copy #folder #dist
ADD COMMENT
Topic
Name
9+2 =