fix(vite.config.js): 修复theme本地映射关系,解决项目启动报错问题

This commit is contained in:
zzcr 2023-02-20 04:59:14 -08:00
parent 2d3a037115
commit 250f6ace99
No known key found for this signature in database
GPG Key ID: F6C4DFD2EF53A673
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn commitlint --edit $1
npx --no-install commitlint --edit

View File

@ -56,12 +56,12 @@ const config = {
'@opentiny/vue-common': pathJoin('../../tiny-vue/packages/common'),
'@opentiny/vue-renderless': pathJoin('../../tiny-vue-renderless/src'),
'@opentiny/vue-icon': pathJoin('../../tiny-vue/packages/icon/index.js'),
'@opentiny/tiny-icon': pathJoin('../../tiny-vue/packages/icon/index.js'),
'@opentiny/tiny-theme/base/index.css': pathJoin('../../tiny-vue-theme/src/base/index.less'),
'@opentiny/tiny-theme/theme-tool.js': pathJoin('../../tiny-vue-theme/src/theme-tool.js'),
'@opentiny/tiny-theme/theme': pathJoin('../../tiny-vue-theme/src/theme/index.js'),
'@opentiny/tiny-theme-mobile/base/index.css': pathJoin('../../tiny-vue-theme-mobile/src/base/index.less'),
...doComponents()
...doComponents(),
'@opentiny/vue-theme/base/index.css': pathJoin('../../tiny-vue-theme/src/base/index.less'),
'@opentiny/vue-theme/svg/index.css': pathJoin('../../tiny-vue-theme/src/svg/index.less'),
'@opentiny/vue-theme/tall-storage/index.css': pathJoin('../../tiny-vue-theme/src/tall-storage/index.less'),
'@opentiny/vue-theme': pathJoin('../../tiny-vue-theme/src'),
'@opentiny/vue-theme-mobile/base/index.css': pathJoin('../../tiny-vue-theme-mobile/src/base/index.less')
}
},
define: {

View File

@ -63,7 +63,6 @@
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@babel/preset-env": "^7.18.10",
"@opentiny/vue-theme": "^3.0.0",
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^22.0.2",

View File

@ -39,11 +39,12 @@ const config = {
'@opentiny/vue-common': pathJoin('packages/common'),
'@opentiny/vue-renderless': pathJoin('../tiny-vue-renderless/src'),
'@opentiny/vue-icon': pathJoin('packages/icon/index.js'),
...doComponents(),
'@opentiny/vue-theme/base/index.css': pathJoin('../tiny-vue-theme/src/base/index.less'),
'@opentiny/vue-theme/theme-tool.js': pathJoin('../tiny-vue-theme/src/theme-tool.js'),
'@opentiny/vue-theme/theme': pathJoin('../tiny-vue-theme/src/theme/index.js'),
'@opentiny/vue-theme-mobile/base/index.css': pathJoin('../tiny-vue-theme-mobile/src/base/index.less'),
...doComponents()
'@opentiny/vue-theme/svg/index.css': pathJoin('../tiny-vue-theme/src/svg/index.less'),
'@opentiny/vue-theme/tall-storage/index.css': pathJoin('../tiny-vue-theme/src/tall-storage/index.less'),
'@opentiny/vue-theme': pathJoin('../tiny-vue-theme/src'),
'@opentiny/vue-theme-mobile/base/index.css': pathJoin('../tiny-vue-theme-mobile/src/base/index.less')
}
},
define: {