Angular 7 relocate Assets File after Build
Asked Answered
G

1

5

I have this sitemap.xml file in my assets folder under src: assets folder

When building my project via the cli with ng build --prod the resulting folder looks like this: assets folder

My question is simply how I can move the sitemap.xml file outside the assets folder when building my project?

Golly answered 28/11, 2018 at 19:46 Comment(0)
V
6

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": "/" }],
Vlf answered 28/11, 2018 at 21:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.