File tree Expand file tree Collapse file tree 4 files changed +5
-805
lines changed Expand file tree Collapse file tree 4 files changed +5
-805
lines changed Original file line number Diff line number Diff line change 55node_modules /
66.deploy * /
77package-lock.json
8+ yarn.lock
89.vitepress /dist
910* .local
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ $ git clone https://github.com/vitejs/docs-cn.git
4747
4848# 安装依赖
4949$ npm install
50- # 或者使用 yarn
51- $ yarn install
50+ # 或者使用 pnpm
51+ $ pnpm i
5252
5353# 启动开发服务器
54- $ yarn dev
54+ $ pnpm dev
5555```
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ title: 部署静态站点
66本指南建立在以下几个假设基础之上:
77
88- 你正在使用的是默认的构建输出路径(` dist ` )。这个路径 [ 可以通过 ` build.outDir ` 更改] ( /config/#build-outdir ) ,在这种情况下,你可以从这篇指南中找到出所需的指引。
9- - 你正在使用 NPM;或者 Yarn 等其他可以运行下面的脚本指令的包管理工具。
9+ - 你正在使用 NPM;或者 Yarn PNPM 等其他可以运行下面的脚本指令的包管理工具。
1010- Vite 已作为一个本地开发依赖(dev dependency)安装在你的项目中,并且你已经配置好了如下的 npm scripts:
1111
1212``` json
You can’t perform that action at this time.
0 commit comments