From 73878c03be79db7c7dda75f20f116ffbd6ba7531 Mon Sep 17 00:00:00 2001 From: baiwusanyu-c <740132583@qq.com> Date: Tue, 30 May 2023 10:14:16 +0800 Subject: [PATCH] docs: updated README.md --- README.ZH-CN.md | 7 ++++++- README.md | 3 +++ packages/sub-style/README.md | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.ZH-CN.md b/README.ZH-CN.md index c0fbc17..a879f9e 100644 --- a/README.ZH-CN.md +++ b/README.ZH-CN.md @@ -28,6 +28,9 @@ pnpm add unplugin-vue-ce -D ``` ## Usage + +> Tips: 你需要开启 `@vitejs/plugin-vue` 的 `customElement` 选项 +
Vite @@ -39,7 +42,9 @@ import vue from '@vitejs/plugin-vue' import type { PluginOption } from 'vite' export default defineConfig({ plugins: [ - vue(), + vue({ + customElement: true, + }), viteVueCE() as PluginOption, ], }) diff --git a/README.md b/README.md index 0ebf940..05b9dd7 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ pnpm add unplugin-vue-ce -D ``` ## Usage + +> Tips: You need to enable the `customElement` option of `@vitejs/plugin-vue` +
Vite diff --git a/packages/sub-style/README.md b/packages/sub-style/README.md index 6447112..a194f86 100644 --- a/packages/sub-style/README.md +++ b/packages/sub-style/README.md @@ -24,6 +24,9 @@ pnpm add @unplugin-vue-ce/sub-style ``` ## Usage + +> Tips: You need to enable the `customElement` option of `@vitejs/plugin-vue` +
Vite