Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for webpack4, latest cesium, and optionally vue.js? #12

Open
fnoop opened this issue Sep 24, 2018 · 7 comments
Open

Update for webpack4, latest cesium, and optionally vue.js? #12

fnoop opened this issue Sep 24, 2018 · 7 comments

Comments

@fnoop
Copy link

fnoop commented Sep 24, 2018

Hi, this is a great resource along with the doc page https://cesiumjs.org/tutorials/cesium-and-webpack/ (which could be referenced from this repo readme, to be helpful), but it's out of date now.
I've spent the past day chasing my tail trying to get the latest cesium (1.49) to work with webpack 4, and vue.js. The docs and repo here are out of date and don't work, and while there are lots of helpful issues and posts around that hint at how to fix various issues, I've yet to hit on the magic combination that works.
This shouldn't be this difficult!
(but thanks for your great efforts so far)

@tkazik
Copy link

tkazik commented Dec 2, 2018

If I may add: I would also love to see a simple example regarding models (gltf/glb). What loader would you suggest? Thank you and keep up the good work!

@Rackar
Copy link

Rackar commented Jan 4, 2019

If I may add: I would also love to see a simple example regarding models (gltf/glb). What loader would you suggest? Thank you and keep up the good work!

haha, I just got that. In webpack config add this
plugins: [ new CopyWebpackPlugin([ { from: path.join('./static', 'model'), to: 'model3D'}]), ]
and just use
model: { uri: "model3D/Monster/Monster.gltf", }

@dengzengjian
Copy link

Hi,i have heard that you have build a programe which combined vue with cesium ,in these days,i try to make it too,but i have met many issues ,could u send me a demo like that ? thanks a lot

@Rackar
Copy link

Rackar commented Apr 11, 2019

Hi,i have heard that you have build a programe which combined vue with cesium ,in these days,i try to make it too,but i have met many issues ,could u send me a demo like that ? thanks a lot

that's my config file and demo in gitee
gitee.com/rackar/CesiumVueVant/blob/master/vue.config.js

@richard1015
Copy link

@fnoop Vue.js using demo https:/richard1015/cesium-vue-example

@bluehaoran
Copy link

Hey @fnoop, I've actually been chasing my tail this last week trying to get Webpack +Cesium + Vue working. This is what I ended up with as a proof of concept. It's simpler than @richard1015's; so you won't get Vue Router stuff, but it's the bare minimum to build and include Cesium in a Vue component.
https:/bluehaoran/cesium-on-vue

@SamuelDudley
Copy link

SamuelDudley commented Jan 20, 2020

I'm working with @fnoop where we are integrating cesium into a Vue application. Our current proof of concept is https:/SamuelDudley/vue-vanilla-cesium

This application uses the vue-cli, vuex, vue-router and demonstrates a non-trivial data binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants