docs: adjust static resource path

This commit is contained in:
chenjiahan 2021-02-08 17:53:55 +08:00
parent 1a28027e1c
commit 71e6cce239
2 changed files with 1 additions and 5 deletions

View File

@ -1,8 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
vant-cli build-site vant-cli build-site
superman-cdn /vant ./site/*.js
rm -rf site/*.js
gh-pages -d site --add --dest v3 gh-pages -d site --add --dest v3

View File

@ -6,7 +6,7 @@ module.exports = {
site: { site: {
publicPath: publicPath:
(typeof window === 'undefined' && process.env.PUBLIC_PATH) || (typeof window === 'undefined' && process.env.PUBLIC_PATH) ||
'https://b.yzcdn.cn/vant/', '/vant/v3/',
}, },
vetur: { vetur: {
tagPrefix: 'van-', tagPrefix: 'van-',