Using webpack for Custom Builds: what does config.ts do?

168
1
06-06-2019 01:42 AM
ShakilChoudhury
New Contributor III

I've been following this guide to deploy a custom build of the JS API. I've got it working, but I don't really understand what is happening. The guide says the config.ts file configures the application to use the workers of the ArcGIS API for JavaScript from the cdn. Can I not locally host these files and serve them myself?

Tags (1)
0 Kudos
1 Reply
ReneRubalcava
Frequent Contributor II

At the moment no. webpack does not handle building bundles for workers as well as we need it to at the moment, so we currently need to load the workers via the CDN. We are working towards some viable solutions to make the easier in the future.