刚开始使用的 cesium 踩过的坑,希望对你有用
https://gitee.com/amluck/cesiumGS 由于使用Cesium源码比较频繁,用gitee搞了一个镜像,一周内会手动同步3-5次
20200708
不同的分支代表不同的环境
参照 cesium 官方 GitHub 库cesium-webpack-example ,添加了@znemz/cesium-navigation。
git clone -b webpack https://github.com/amluck/cesium-in-use.git
npm install
npm start
npm start - Runs a webpack build with webpack.config.js and starts a development servernpm run build - Runs a webpack build with webpack.config.jsnpm run release - Runs an optimized webpack build with webpack.release.config.jsnpm run serve-release - Runs an optimized webpack build with webpack.release.config.js and starts a development server使用Vue Cli 2构建,工程使用了 eslint+prettier 进行代码格式化
git clone -b vuecli2 https://github.com/amluck/cesium-in-use.git
npm install
npm run dev
npm run dev - Runs a serve with hot reload at localhost:8080npm run build - Build for production with minificationnpm run lint - Lint code by eslint使用Vue Cli 4.05构建,工程使用了 eslint+prettier 进行代码格式化
git clone -b vuecli3+ https://github.com/amluck/cesium-in-use.git
yarn install
yarn serve
yarn serve - Runs a serve with hot reload at localhost:9099yarn build - Build for production with minificationyarn lint - Lint code by eslint