reafctor: vite.config.js

This commit is contained in:
mozzie 2023-03-21 11:22:25 +08:00
parent 1f72cd8da3
commit f6dfae4585
2 changed files with 6187 additions and 13 deletions

6177
apps/web/stats.html Normal file

File diff suppressed because one or more lines are too long

View File

@ -26,18 +26,15 @@ export default defineConfig({
}, },
}, },
build: { build: {
// rollupOptions: { rollupOptions: {
// output: { output: {
// manualChunks(id) { // 入口文件名
// if (id.includes("node_modules")) { entryFileNames: "assets/[hash].js",
// return id // 块文件名
// .toString() chunkFileNames: "assets/[hash].js",
// .split("node_modules/")[1] // 资源文件名 css 图片等等
// .split("/")[0] assetFileNames: "assets/[hash].[ext]",
// .toString(); },
// } },
// },
// },
// },
}, },
}); });