aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'vite.config.js')
-rw-r--r--vite.config.js25
1 files changed, 20 insertions, 5 deletions
diff --git a/vite.config.js b/vite.config.js
index 2e513f9..0af7e4d 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -8,11 +8,26 @@ export default {
assetsDir: "assets",
rollupOptions: {
output: {
- manualChunks: {
- ol: ['ol'],
- bootstrap: ['bootstrap'],
- proj4: ['proj4'],
- }
+ codeSplitting: {
+ groups: [
+ {
+ name: 'ol_source',
+ test: /node_modules[\\/]ol[\\/]source/,
+ },
+ {
+ name: 'ol',
+ test: /node_modules[\\/]ol/,
+ },
+ {
+ name: 'bootstrap',
+ test: /node_modules[\\/]bootstrap/,
+ },
+ {
+ name: 'proj4',
+ test: /node_modules[\\/]proj4/,
+ },
+ ],
+ },
}
}
},