I am would like to develop a simple OpenLayers (7) application to show GeoJSON delivered from the same server. I have experience with JS, especially the older OL versions but have hit a wall since the introduction of npm and vite development environment model.
My principle dev server is PHP/Apache where I serve data. I've tried a simple page running on npm and accessing the apache data but am running into CORS problems. I can't port everything to vine/npm because I don't really know what I'm doing and am not convinced this is the only development option, surely?
I am a geomatic engineer, with web experience (pre JS dominance) and have tried over the last few years to learn a bit of npm, vite etc, specifically for OpenLayers but am simply not making sufficient progress.
Is there not precompiled .js and .css files (CDN?) to allow me to develop using traditional techniques. I don't care if these files are 20kB or 20 MB.
My alterternative is to continue to use my old OpenLayers 3 .css and .js files.