leosmilence@163.com dca8ecfb67 添加使用说明文档 | 4 years ago | |
---|---|---|
Dowloads | 4 years ago | |
docs | 4 years ago | |
.gitignore | 4 years ago | |
README.md | 4 years ago | |
deploy.sh | 4 years ago | |
package.json | 4 years ago |
cnpm install
npm run dev // 开发调试
npm run build // 构建静态文件 /docs/.vuepress/dist 目录里的文件为构建后的静态目录文件
使用 npm run build 执行好压缩后的dist 文件进行部署
server {
listen 8081;
location / {
root /docs/.vuepress/dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
}