docs: adjust v4 site deploy config (#11316)

This commit is contained in:
neverland 2022-11-26 22:54:23 +08:00 committed by GitHub
parent 13512ca25b
commit 7858537434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -36,7 +36,7 @@ jobs:
with: with:
branch: gh-pages branch: gh-pages
folder: packages/vant/site-dist folder: packages/vant/site-dist
target-folder: v4 clean: false
- name: Deploy for GitHub 🚀 - name: Deploy for GitHub 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.0 uses: JamesIves/github-pages-deploy-action@v4.4.0
@ -45,4 +45,5 @@ jobs:
folder: packages/vant/site-dist folder: packages/vant/site-dist
token: ${{ secrets.VANT_UI_TOKEN }} token: ${{ secrets.VANT_UI_TOKEN }}
repository-name: vant-ui/vant-ui.github.io repository-name: vant-ui/vant-ui.github.io
target-folder: vant/v4 target-folder: vant
clean: false

View File

@ -8,9 +8,6 @@
"typings": "lib/index.d.ts", "typings": "lib/index.d.ts",
"unpkg": "lib/vant.min.js", "unpkg": "lib/vant.min.js",
"jsdelivr": "lib/vant.min.js", "jsdelivr": "lib/vant.min.js",
"npm": {
"tag": "next"
},
"files": [ "files": [
"es", "es",
"lib" "lib"

View File

@ -11,8 +11,7 @@ export default {
}, },
site: { site: {
publicPath: publicPath:
(typeof window === 'undefined' && process.env.PUBLIC_PATH) || (typeof window === 'undefined' && process.env.PUBLIC_PATH) || '/vant/',
'/vant/v4',
}, },
vetur: { vetur: {
tagPrefix: 'van-', tagPrefix: 'van-',