mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
support baidu map
This commit is contained in:
+3
-1
@@ -108,7 +108,9 @@ export default defineConfig(async () => {
|
||||
chunkFileNames: 'js/[name]-[hash].js',
|
||||
entryFileNames: 'js/[name]-[hash].js',
|
||||
manualChunks: function (id) {
|
||||
if (/[\\/]node_modules[\\/]/i.test(id)) {
|
||||
if (/[\\/]node_modules[\\/]leaflet[\\/]/i.test(id)) {
|
||||
return 'leaflet';
|
||||
} else if (/[\\/]node_modules[\\/]/i.test(id)) {
|
||||
return 'vendor';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user