reafctor: 分包
This commit is contained in:
parent
f6dfae4585
commit
46c4be225a
File diff suppressed because one or more lines are too long
|
@ -28,6 +28,13 @@ export default defineConfig({
|
|||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
// key不重要,会被 chunkFileNames [hash].js重命名
|
||||
"r-vendor": ["react"],
|
||||
"rd-vendor": ["react-dom"],
|
||||
"rdd-vendor": ["react-router-dom"],
|
||||
"dp-vendor": ["dplayer"],
|
||||
},
|
||||
// 入口文件名
|
||||
entryFileNames: "assets/[hash].js",
|
||||
// 块文件名
|
||||
|
|
Loading…
Reference in New Issue
Block a user