mirror of
https://gitee.com/newgateway/vtj.git
synced 2026-09-06 22:58:04 +08:00
- 在 app 项目 vite 配置中添加 createCompositionFixPlugin 插件 - 从 uniapp 项目 vite 配置中移除 createCompositionFixPlugin 插件 - 在 local 包插件配置中添加 createCompositionFixPlugin 插件以修复相关问题
20 lines
491 B
TypeScript
20 lines
491 B
TypeScript
import { createViteConfig } from '@vtj/cli';
|
|
import { createDevTools, createCompositionFixPlugin } from '@vtj/pro/vite';
|
|
import proxy from './proxy.config';
|
|
// const basePath = '/lowcode/';
|
|
const basePath = '/';
|
|
export default createViteConfig({
|
|
base: basePath,
|
|
proxy,
|
|
elementPlus: false,
|
|
lib: false,
|
|
plugins: [
|
|
createCompositionFixPlugin(),
|
|
createDevTools({
|
|
staticBase: basePath,
|
|
devMode: false,
|
|
pluginNodeModulesDir: '../../node_modules'
|
|
})
|
|
]
|
|
});
|