chore: update release site sh

This commit is contained in:
陈嘉涵 2019-12-13 10:13:37 +08:00
parent 2dba8c9455
commit 648d301fbd
3 changed files with 5 additions and 7 deletions

2
.gitignore vendored
View File

@ -12,7 +12,7 @@ package-lock.json
es es
lib lib
dist dist
./site /site
changelog.generated.md changelog.generated.md
test/coverage test/coverage
vetur vetur

View File

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

View File

@ -3,7 +3,7 @@ module.exports = {
build: { build: {
skipInstall: ['lazyload'], skipInstall: ['lazyload'],
site: { site: {
publicPath: 'vant/' publicPath: '/vant/'
}, },
vetur: { vetur: {
tagPrefix: 'van-' tagPrefix: 'van-'