From ddb52acc1a88afbdce3cf3a25cedbfc3149a4c3f Mon Sep 17 00:00:00 2001 From: Nshen Date: Mon, 8 Mar 2021 15:18:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20RELEASE:=20=201.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 +++++++++++++++++++ package.json | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d11d582..ab6ef64 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,25 @@ export default defineConfig({ }); ``` +## Options + +**rebuildCesium** + +- **Type :** `boolean` +- **Default :** `false` + +Default copy min cesium file to dist. if `true` will rebuild cesium. + +```js +import { defineConfig } from 'vite'; +import cesium from 'vite-plugin-cesium'; +export default defineConfig({ + plugins: [cesium({ + rebuildCesium: false + })], +}); +``` + ## Demo diff --git a/package.json b/package.json index afa95ab..6def53d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-cesium", - "version": "1.0.3", + "version": "1.1.0", "description": "Cesium library plugin for Vite", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -39,4 +39,4 @@ "cesium": "^1.79.0", "vite": "^2.0.4" } -} +} \ No newline at end of file