feat(config): 添加 '@cmvr/iot-common' 别名到 Vite 配置
This commit is contained in:
parent
a35b8a855c
commit
d66951c003
@ -39,7 +39,8 @@ export default defineConfig(({ mode, command }) => {
|
|||||||
// 设置路径
|
// 设置路径
|
||||||
'~': path.resolve(__dirname, './'),
|
'~': path.resolve(__dirname, './'),
|
||||||
// 设置别名
|
// 设置别名
|
||||||
'@': path.resolve(__dirname, './src')
|
'@': path.resolve(__dirname, './src'),
|
||||||
|
'@cmvr/iot-common': path.resolve(__dirname, '../cmvr-iot-common/dist')
|
||||||
},
|
},
|
||||||
dedupe: ['vue', 'vue-router', 'pinia', 'element-plus', '@element-plus/icons-vue'],
|
dedupe: ['vue', 'vue-router', 'pinia', 'element-plus', '@element-plus/icons-vue'],
|
||||||
// https://cn.vitejs.dev/config/#resolve-extensions
|
// https://cn.vitejs.dev/config/#resolve-extensions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user