diff --git a/Yi.Ai.Vue3/vite.config.ts b/Yi.Ai.Vue3/vite.config.ts index b3922c3a..7d4fcbd0 100644 --- a/Yi.Ai.Vue3/vite.config.ts +++ b/Yi.Ai.Vue3/vite.config.ts @@ -139,16 +139,16 @@ export default defineConfig((cnf) => { }, // 实验性功能 - experimental: { - // 启用渲染内联 CSS(提高首次加载速度) - renderBuiltUrl(filename, { hostType }) { - // 生产环境使用相对路径 - if (hostType === 'js') { - return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` }; - } - return { relative: true }; - }, - }, + // experimental: { + // // 启用渲染内联 CSS(提高首次加载速度) + // renderBuiltUrl(filename, { hostType }) { + // // 生产环境使用相对路径 + // if (hostType === 'js') { + // return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` }; + // } + // return { relative: true }; + // }, + // }, server: { port: 17001,