fix(vite.config.js): 修复theme本地映射关系,解决项目启动报错问题
This commit is contained in:
parent
2d3a037115
commit
250f6ace99
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn commitlint --edit $1
|
npx --no-install commitlint --edit
|
||||||
|
|
|
@ -56,12 +56,12 @@ const config = {
|
||||||
'@opentiny/vue-common': pathJoin('../../tiny-vue/packages/common'),
|
'@opentiny/vue-common': pathJoin('../../tiny-vue/packages/common'),
|
||||||
'@opentiny/vue-renderless': pathJoin('../../tiny-vue-renderless/src'),
|
'@opentiny/vue-renderless': pathJoin('../../tiny-vue-renderless/src'),
|
||||||
'@opentiny/vue-icon': pathJoin('../../tiny-vue/packages/icon/index.js'),
|
'@opentiny/vue-icon': pathJoin('../../tiny-vue/packages/icon/index.js'),
|
||||||
'@opentiny/tiny-icon': pathJoin('../../tiny-vue/packages/icon/index.js'),
|
...doComponents(),
|
||||||
'@opentiny/tiny-theme/base/index.css': pathJoin('../../tiny-vue-theme/src/base/index.less'),
|
'@opentiny/vue-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/vue-theme/svg/index.css': pathJoin('../../tiny-vue-theme/src/svg/index.less'),
|
||||||
'@opentiny/tiny-theme/theme': pathJoin('../../tiny-vue-theme/src/theme/index.js'),
|
'@opentiny/vue-theme/tall-storage/index.css': pathJoin('../../tiny-vue-theme/src/tall-storage/index.less'),
|
||||||
'@opentiny/tiny-theme-mobile/base/index.css': pathJoin('../../tiny-vue-theme-mobile/src/base/index.less'),
|
'@opentiny/vue-theme': pathJoin('../../tiny-vue-theme/src'),
|
||||||
...doComponents()
|
'@opentiny/vue-theme-mobile/base/index.css': pathJoin('../../tiny-vue-theme-mobile/src/base/index.less')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
|
|
|
@ -63,7 +63,6 @@
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||||
"@babel/plugin-syntax-jsx": "^7.2.0",
|
"@babel/plugin-syntax-jsx": "^7.2.0",
|
||||||
"@babel/preset-env": "^7.18.10",
|
"@babel/preset-env": "^7.18.10",
|
||||||
"@opentiny/vue-theme": "^3.0.0",
|
|
||||||
"@rollup/plugin-alias": "^3.1.9",
|
"@rollup/plugin-alias": "^3.1.9",
|
||||||
"@rollup/plugin-babel": "^5.3.1",
|
"@rollup/plugin-babel": "^5.3.1",
|
||||||
"@rollup/plugin-commonjs": "^22.0.2",
|
"@rollup/plugin-commonjs": "^22.0.2",
|
||||||
|
|
|
@ -39,11 +39,12 @@ const config = {
|
||||||
'@opentiny/vue-common': pathJoin('packages/common'),
|
'@opentiny/vue-common': pathJoin('packages/common'),
|
||||||
'@opentiny/vue-renderless': pathJoin('../tiny-vue-renderless/src'),
|
'@opentiny/vue-renderless': pathJoin('../tiny-vue-renderless/src'),
|
||||||
'@opentiny/vue-icon': pathJoin('packages/icon/index.js'),
|
'@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/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/svg/index.css': pathJoin('../tiny-vue-theme/src/svg/index.less'),
|
||||||
'@opentiny/vue-theme/theme': pathJoin('../tiny-vue-theme/src/theme/index.js'),
|
'@opentiny/vue-theme/tall-storage/index.css': pathJoin('../tiny-vue-theme/src/tall-storage/index.less'),
|
||||||
'@opentiny/vue-theme-mobile/base/index.css': pathJoin('../tiny-vue-theme-mobile/src/base/index.less'),
|
'@opentiny/vue-theme': pathJoin('../tiny-vue-theme/src'),
|
||||||
...doComponents()
|
'@opentiny/vue-theme-mobile/base/index.css': pathJoin('../tiny-vue-theme-mobile/src/base/index.less')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
define: {
|
define: {
|
||||||
|
|
Loading…
Reference in New Issue