yarn add --dev vitepress
yarn add -D vite-plugin-components vite-plugin-icons
yarn add -D vite-plugin-windicss windicss
yarn add @iconify/json @vueuse/core
Vite 官方中文文档 v2.4
vitejs / docs-cn
yarn build
.vitepress\dist
git fix
git reset HEAD~3
yarn build
files changes discard
$ git push -f origin main
blade-icons/ri-github-line
"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
✓ building client server bundles... ✖ rendering pages... build error: TypeError: Invalid value used as weak map key
不能 用
<hn></hn>