reafctor: vite.config.js
This commit is contained in:
parent
1f72cd8da3
commit
f6dfae4585
6177
apps/web/stats.html
Normal file
6177
apps/web/stats.html
Normal file
File diff suppressed because one or more lines are too long
|
@ -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();
|
},
|
||||||
// }
|
},
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user