I have this sitemap.xml
file in my assets
folder under src
:
When building my project via the cli with ng build --prod
the resulting folder looks like this:
My question is simply how I can move the sitemap.xml
file outside the assets
folder when building my project?
Based on the documentation here, you just need to update your angular.json
file.
Something like the following should work for your sitemap file:
"assets": [{ "glob": "sitemap.xml", "input": "src/assets/", "output": "/" }],