https://github.com/dvt3d/vite-plugin-cesium
Vite plugin for Cesium
https://github.com/dvt3d/vite-plugin-cesium
Last synced: 3 months ago
JSON representation
Vite plugin for Cesium
- Host: GitHub
- URL: https://github.com/dvt3d/vite-plugin-cesium
- Owner: dvt3d
- License: apache-2.0
- Created: 2022-02-13T05:39:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-13T13:07:32.000Z (over 4 years ago)
- Last Synced: 2025-10-06T12:51:38.321Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-cesium
Vite plugin for Cesium
## Install
```shell
npm i cesium @dvgis/vite-plugin-cesium vite -D
# yarn add cesium @dvgis/vite-plugin-cesium vite -D
```
## Usage
add blow codes to `vite.config.js`
```js
import { defineConfig } from 'vite';
import Cesium from '@dvgis/vite-plugin-cesium';
export default defineConfig({
plugins: [Cesium()]
});
```
##Options
**_libsPath_**
Which directory to put Cesium in
- **type** : String
- **default**: 'libs'
**_useUnminified_**
Whether to use the unminified files in development mode
- **type** : Boolean
- **default**: false
## Copyright
```warning
1. The framework is a basic platform, completely open source, which can be modified and reconstructed by any individual or institution without our authorization.
2. We are not responsible for any problems arising from the modification of the framework by individuals and organizations.
3. The package released by us may be used permanently and free of charge by any person or organization subject to:
1) complete package reference;
We reserve the right of final interpretation of this copyright information.
```