fix: 切分依赖
This commit is contained in:
1 parent
41a346e1cf
commit
e80ed3b33e
1 file changed
+11
@@ -16,4 +16,15 @@ export default defineConfig({
|
|||||||
'/api': 'http://localhost:6099',
|
'/api': 'http://localhost:6099',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
output: {
|
||||||
|
manualChunks(id) {
|
||||||
|
if (id.includes('node_modules')) {
|
||||||
|
return id.toString().split('node_modules/')[1].split('/')[0].toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user