Closed brunokunace closed 9 months ago
It's out of date, but try this and post if it works:
@TJKoury works, but its not a official Cesium package and i cant use this. @cesiumgs-admin
https://github.com/CesiumGS/cesium/issues/10619
I submitted for a Cesium grant to roll all this into Cesium, make some noise if this is something you want to see done.
@brunokunace You'll want to use the pre-built workers in Build/Workers/
instead of the unbuilt Source/WorkersES6/
.
But message received about an easy-to-follow example using vue/vite.
Requested on the forum: https://community.cesium.com/t/is-there-a-good-way-to-use-cesium-with-vite/27545/2
@brunokunace I found maybe a good solution to solve the problem. Here is the code simply-cesium-vite-vue. Hope it helpful. On my laptop, the bundling process only took 717ms, and the resulting "dist" folder was only 11.1 MB in size. I have provided a detailed explanation of my approach in the readme. If there's anything I can assist you with, please feel free to ask. If you have any suggestions or improvements, I welcome them as well!
Hi all, we've added https://github.com/CesiumGS/cesium-vite-example with a recommended setup for vite. It should also be straightforward to add vue to that setup.
Please leave a comment or issue in that repo if you have any feedback. Thanks!
Hi everyone, im trying to create a simple example with vue2+vite and cesium 1.105.2
I use a vite plugin to copy node files to public:
//vite.config.js
and all files i need are copied to /public folder and its nice.
But when i try to initialize the script bellow, i receive these erros in console and the result a black sky with start moving
Error: Note. /Workers/createVerticesFromHeightmap.js is working in the indicated path.
Result screen: