open-index/open-npm huggingface dataset:
npm package: @gmgis/vite-plugin-gm
Description: Vite plugin for GM-SDK
Author: XIN
Latest version: 2.0.1

# vite-plugin-gm
Vite plugin for GM-SDK

## Install

```shell
npm i  @gmgis/gm-sdk  @gmgis/vite-plugin-gm vite  -D
# yarn add @gmgis/gm-sdk @gmgis/vite-plugin-gm vite  -D
```

## Usage
add blow codes to `vite.config.js`

```js
import { defineConfig } from 'vite';
import GM from '@gmgis/vite-plugin-gm';
export default defineConfig({
  plugins: [GM()]
});
```

##Options

**_libPath_**

Which directory gets the gm-sdk lib

- **type** : string
- **default**: './node_modules/@gmgis/gm-sdk'

**_outPath_**

Directory to export gm-sdk lib to

- **type** : string
- **default**: '/libs/gm-sdk'

**_useCND_**

Whether to use cdn mode, if ture,  will automatically insert references to `gm.min.js` and `gm.min.css` in index.html.

- **type** : boolean
- **default**: false