From ee846eddf8ef1061bf44984a51625bc99ec7b0eb Mon Sep 17 00:00:00 2001 From: wonder_dai <37327614+daiwanxing@users.noreply.github.com> Date: Mon, 6 Sep 2021 23:05:04 +0800 Subject: [PATCH] chore(docs): fix syntax error (#3243) Co-authored-by: daiwanxing --- website/docs/zh-CN/quickstart.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/website/docs/zh-CN/quickstart.md b/website/docs/zh-CN/quickstart.md index 6400a20895..865b9fa199 100644 --- a/website/docs/zh-CN/quickstart.md +++ b/website/docs/zh-CN/quickstart.md @@ -144,16 +144,18 @@ import VitePluginElementPlus from 'vite-plugin-element-plus' // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { - plugins: [ - vue(), - VitePluginElementPlus({ - // 如果你需要使用 [component name].scss 源文件,你需要把下面的注释取消掉。 - // 对于所有的 API 你可以参考 https://github.com/element-plus/vite-plugin-element-plus - // 的文档注释 - // useSource: true - format: mode === 'development' ? 'esm' : 'cjs', - }), - ], + return { + plugins: [ + vue(), + VitePluginElementPlus({ + // 如果你需要使用 [component name].scss 源文件,你需要把下面的注释取消掉。 + // 对于所有的 API 你可以参考 https://github.com/element-plus/vite-plugin-element-plus + // 的文档注释 + // useSource: true + format: mode === 'development' ? 'esm' : 'cjs', + }), + ], + } }) ```