feat: 更新路由插件,重构路由获取逻辑并添加新的路由页面

This commit is contained in:
严浩
2024-12-27 00:02:11 +08:00
parent bc8fc96580
commit b6a51c1245
8 changed files with 69 additions and 40 deletions

View File

@@ -32,7 +32,12 @@ export default defineConfig(({ mode, command }) => {
if (warning.code === 'EVAL' && warning.id?.includes('node_modules/mockjs')) return;
warn(warning);
},
output: env.VITE_SPLIT_CHUNKS === 'true' ? createSplitChunkOutput() : undefined,
// https://cn.rollupjs.org/configuration-options/#output-assetfilenames
// output: env.VITE_SPLIT_CHUNKS === 'true' ? (await import('utils4u/rollup')).createSplitChunkOutput() : undefined,
output: {
minifyInternalExports: false,
},
},
},
};