vite-plugin-ls-monitor
v1.0.0
Published
```text npm install vite-plugin-ls-monitor or yarn add vite-plugin-ls-monitor ```
Downloads
2
Readme
安装
npm install vite-plugin-ls-monitor
or
yarn add vite-plugin-ls-monitor
基本使用
import { createLsMonitorPlugin } from 'vite-plugin-ls-monitor';
// vite.config.ts
export default (config: ConfigEnv): UserConfig => {
return {
...
plugins: [createLsMonitorPlugin()]
};
};
// 可支持任意事件
<button data-point="click:xxx" @click="handle">demo</button>
// 将可视化页面设置到特定容器中
window.monitor.setHtml('.container');