1.0.6 • Published 7 months ago

umi-cesium-plugin v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

umi-cesium-plugin

NPM version NPM downloads

运行时将 Cesium 的资源请求代理到 node_modules 中,将 css 文件注入到html中,并且自动注册 accessToken ,优先读取项目中的 Cesium 版本,项目未安装再读取本插件的 Cesium ,版本为 1.108.0

构建会将 Cesium 的资源打包至输出文件

Install

# or yarn
# or pnpm
$ npm install umi-cesium-plugin

Usage

Configure in .umirc.js,

export default {
  plugins: ["umi-cesium-plugin"],
  cesium: {
    accessToken: "your accessToken",
  },
};

page/index.ts

import { Cesium } from "umi";

// your code...

LICENSE

MIT

1.0.6

7 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago