From d8acec16711444036587685851ccf953fa596aff Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Tue, 9 Feb 2021 16:19:54 +0800 Subject: [PATCH] docs: adjust static resource path --- docs/site/release.sh | 4 ---- vant.config.js | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/site/release.sh b/docs/site/release.sh index 072acb9d0..d0b1d5633 100644 --- a/docs/site/release.sh +++ b/docs/site/release.sh @@ -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 diff --git a/vant.config.js b/vant.config.js index d7170181b..63368cfc7 100644 --- a/vant.config.js +++ b/vant.config.js @@ -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-',