Select to view content in your preferred language

config.assetsPath -- set once or for each map

146
2
Jump to solution
3 weeks ago
PeteVitt
Frequent Contributor

Hi - I have a local build Angular application with about 10 maps. Do I need to set config.assetsPath for each map, or just set it once, like in the app.component?

 

Thanks

 

Pete

0 Kudos
1 Solution

Accepted Solutions
AndyGup
Esri Regular Contributor

Just set it once per local project. Here is more info: https://developers.arcgis.com/javascript/latest/get-started-npm/#local-assets. Remember to re-copy the assets every time you do a production build.

View solution in original post

2 Replies
AndyGup
Esri Regular Contributor

Just set it once per local project. Here is more info: https://developers.arcgis.com/javascript/latest/get-started-npm/#local-assets. Remember to re-copy the assets every time you do a production build.

PeteVitt
Frequent Contributor

Thanks Andy

0 Kudos