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

Cesium integration #1

Open
martin-s opened this issue Sep 3, 2016 · 3 comments
Open

Cesium integration #1

martin-s opened this issue Sep 3, 2016 · 3 comments

Comments

@martin-s
Copy link

martin-s commented Sep 3, 2016

No real issue, but more a question about the status:
Is it right that you still need to copy some assets to output folder (copyCesium.js)? Is there any progress in a webpack integration that you know?

@markerikson
Copy link
Owner

The repo at https://github.com/mmacaula/cesium-webpack instructs you to copy Cesium's assets to a folder before you can begin development. The setup I have in this repo allows you to directly serve Cesium's assets out of ./node_modules/cesium/ during development, and only copy them out to your production build folder as needed.

Not sure what "Webpack integration" you're looking for. Any specifics?

@martin-s
Copy link
Author

martin-s commented Sep 4, 2016

Ok, I missed the devServer.js part. Hence, you add another static assets folder to your environment. I used the plain webpack-dev-server where I can only set one public path.

Regardig the webpack integration: I had the idea of loading package like it's done for font-awesome: https://www.npmjs.com/package/font-awesome-webpack
So, you just have one single assets folder where all bundled data is compiled to. I know that cesium is another beast of a library ;-)

@markerikson
Copy link
Owner

Yeah, my actual app has a number of specific needs for proxying behavior and some other stuff, so I built my own dev server that uses webpack-dev-middleware. This repo is a stripped-down version of that app's setup.

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

2 participants