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-'