Closed GeofoxCoding closed 2 years ago
I'm one step further now once I found in another ticket, that I have to target init.js in setDEfaultOptions({ url: '.../init.js', ... }).
After also enabling wasm files at my webserver it now seems to load the sources correctly from local server but my css is still loaded from js.arcgis.com
Is there also something else I have to enable for css? With my defaultOptions(...) example above I was following your current documentation but as written I had to point to init.js instead.
I also want to link. #216
@GeofoxCoding did you try loadCss()
?
import { loadCss } from 'esri-loader';
loadCss('http://server/path/to/esri/css/main.css');
@andygup I'm sorry this was my fault. I forgot the styles referenced in index.html.
Works! Thank you very much.
Expected behavior
esri-loader should load sources from local server in current version 3.4.0
Actual behavior
We had to change a project that utilized esri-loader to load the esri sources and assets from our own server.
esri-loader gets passed a web server directory:
Because url points to a server directory it only receives a directory browsing (if activated) page. Is there a default script that should be loaded inside /esri ?
The URL matches and resides on the same server.
It seems like esri-loader also only receives the directory browsing page. What does the esri-loader expect to be returned from .../esri/4.22/esri ?