From 648d301fbd6f5debb41c264c531fdca36e87063f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Fri, 13 Dec 2019 10:13:37 +0800 Subject: [PATCH] chore: update release site sh --- .gitignore | 2 +- docs/site/release.sh | 8 +++----- vant.config.js | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index b45ad0807..3aaecddc0 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,7 @@ package-lock.json es lib dist -./site +/site changelog.generated.md test/coverage vetur diff --git a/docs/site/release.sh b/docs/site/release.sh index 95d903b82..072acb9d0 100644 --- a/docs/site/release.sh +++ b/docs/site/release.sh @@ -1,10 +1,8 @@ #!/usr/bin/env sh -rm -rf docs/dist - 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 diff --git a/vant.config.js b/vant.config.js index 1c3749c5e..04f7d9fb6 100644 --- a/vant.config.js +++ b/vant.config.js @@ -3,7 +3,7 @@ module.exports = { build: { skipInstall: ['lazyload'], site: { - publicPath: 'vant/' + publicPath: '/vant/' }, vetur: { tagPrefix: 'van-'