A demo app to use a Cesium Viewer within a Vue component
In my day job, we use Cesium to display 3D models. This is a proof of concept to demonstrate the minimum necessary to integrate Cesium within a Vue component.
git checkout https://github.com/bluehaoran/cesium-on-vue.gitnpm installnpm run servevue.config.js so that vue could continue to drive the webpack build.webpack.release.config.js into vue.config.js.CESIUM_BASE_URL in vue.config.js to something like /.vue.config.js with: new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/Workers', to: 'cesium/Workers' }]),
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/ThirdParty', to: 'cesium/ThirdParty' }]),
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/Assets', to: 'cesium/Assets' }]),
new CopyWebpackPlugin([{ from: 'node_modules/cesium/Build/Cesium/Widgets', to: 'cesium/Widgets' }]),
new webpack.DefinePlugin({
// Define relative base path in cesium for loading assets
CESIUM_BASE_URL: JSON.stringify('cesium')
}),