优化:优化 package.json 文件,去除无用配置(将 VitePress 版本升级为 v1.0.0-alpha.18)
This commit is contained in:
14
README.md
14
README.md
@@ -24,17 +24,19 @@
|
||||
git clone https://github.com/Charles7c/charles7c.github.io.git
|
||||
# 2.安装 PNPM
|
||||
npm install pnpm -g
|
||||
# 3.安装依赖
|
||||
# 3.设置淘宝镜像源
|
||||
pnpm config set registry https://registry.npmmirror.com/
|
||||
# 4.安装依赖
|
||||
pnpm install
|
||||
# 4.dev 运行,访问:http://localhost:5173
|
||||
# 5.dev 运行,访问:http://localhost:5173
|
||||
pnpm dev
|
||||
# 5.打包,文件存放位置:docs/.vitepress/dist
|
||||
# 6.打包,文件存放位置:docs/.vitepress/dist
|
||||
# 如果是部署到 GitHub Pages,可以利用 GitHub Actions,在 push 到 GitHub 后自动部署打包
|
||||
# 详情见:.github/workflows/deploy-pages.yml,根据个人需要删减工作流配置
|
||||
pnpm build
|
||||
# 6.部署
|
||||
# 6.1 push 到 GitHub 仓库,部署到 GitHub Pages:需要在仓库设置中启用 GitHub Pages(本仓库采用此种部署方式)
|
||||
# 6.2 在其他平台部署, 例如:Gitee Pages、Vercel、Netlify、个人虚拟主机、个人服务器等
|
||||
# 7.部署
|
||||
# 7.1 push 到 GitHub 仓库,部署到 GitHub Pages:需要在仓库设置中启用 GitHub Pages(本仓库采用此种部署方式)
|
||||
# 7.2 在其他平台部署, 例如:Gitee Pages、Vercel、Netlify、个人虚拟主机、个人服务器等
|
||||
```
|
||||
|
||||
## 已扩展功能(持续优化细节)
|
||||
|
Reference in New Issue
Block a user