Reputation: 6002
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?
Upvotes: 5
Views: 2900
Reputation: 11464
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": "/" }],
Upvotes: 6