feat(cli): bump webpack@5

This commit is contained in:
chenjiahan
2020-10-13 19:15:32 +08:00
parent 438dcbc0ff
commit 30c24ba23f
8 changed files with 315 additions and 817 deletions

View File

@@ -4,7 +4,9 @@ module.exports = {
srcDir: 'src',
skipInstall: ['lazyload'],
site: {
publicPath: process.env.PUBLIC_PATH || 'https://b.yzcdn.cn/vant/',
publicPath:
(typeof window === 'undefined' && process.env.PUBLIC_PATH) ||
'https://b.yzcdn.cn/vant/',
},
vetur: {
tagPrefix: 'van-',