docs: adjust static resource path

This commit is contained in:
chenjiahan 2021-02-09 16:19:54 +08:00
parent 4db9449f74
commit d8acec1671
2 changed files with 1 additions and 5 deletions

View File

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

View File

@ -3,7 +3,7 @@ module.exports = {
build: {
skipInstall: ['lazyload'],
site: {
publicPath: process.env.PUBLIC_PATH || 'https://b.yzcdn.cn/vant/',
publicPath: process.env.PUBLIC_PATH || '/vant/',
},
vetur: {
tagPrefix: 'van-',