Skip to content

JacobHsu/vue-vben-admin-docs

Repository files navigation

vue-vben-admin-docs

vitepress.vuejs.org

yarn add --dev vitepress

vue-vben-admin-doc

yarn add -D vite-plugin-components vite-plugin-icons yarn add -D vite-plugin-windicss windicss

yarn add @iconify/json @vueuse/core

vitejs.dev

Vite 官方中文文档 v2.4
vitejs / docs-cn

deploy

yarn build .vitepress\dist

git fix

git reset HEAD~3
yarn build
files changes discard
$ git push -f origin main

theme

blade-icons/ri-github-line

Notes

"vitepress": "^0.14.1" vitepress 必須使用 0.14.x 版本

"vitepress": "^0.15.5" 版本需要額外處理 <template functional> 問題

3.x Syntax Components Created by Functions

[vite] Internal server error: <template functional> is no longer supported in Vue 3, since functional components no longer have significant performancedifference from stateful ones. Just use a normal <template> instead. Plugin: vite:vue

debug

✓ building client server bundles... ✖ rendering pages... build error: TypeError: Invalid value used as weak map key

不能 用<hn></hn>