Electron+Vue3+Vite online & offline config for vue-cesium #589
Unanswered
PetukhovArt
asked this question in
Q&A
Replies: 1 comment
-
Maybe you can take a look at these two projects. https://github.com/zouyaoji/vue-cesium-electron-vite-starter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi, zouyaoji !
It will be great if you can show the correct template project configuration for this.
First of all, interested in : vite configuration , import /build static files (core CesiumJS build) when wee need working offline and it's dynamic import into Vue-Cesium from different .env variables.
Prod: offline mode
Dev : online mode
And in project we use different custom providers of layers , so i think :
Now, for hotfix, i paste CesiumJS build into my public folder and change the import path into vue-cesium.
app.use(VueCesium, { locale: enUS, cesiumPath:
${CESIUM_PATH}/Cesium.js, });
Beta Was this translation helpful? Give feedback.
All reactions