fix: 修复实验性功能
This commit is contained in:
@@ -139,16 +139,16 @@ export default defineConfig((cnf) => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 实验性功能
|
// 实验性功能
|
||||||
experimental: {
|
// experimental: {
|
||||||
// 启用渲染内联 CSS(提高首次加载速度)
|
// // 启用渲染内联 CSS(提高首次加载速度)
|
||||||
renderBuiltUrl(filename, { hostType }) {
|
// renderBuiltUrl(filename, { hostType }) {
|
||||||
// 生产环境使用相对路径
|
// // 生产环境使用相对路径
|
||||||
if (hostType === 'js') {
|
// if (hostType === 'js') {
|
||||||
return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` };
|
// return { runtime: `window.__assetsPath(${JSON.stringify(filename)})` };
|
||||||
}
|
// }
|
||||||
return { relative: true };
|
// return { relative: true };
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
|
|
||||||
server: {
|
server: {
|
||||||
port: 17001,
|
port: 17001,
|
||||||
|
|||||||
Reference in New Issue
Block a user