aboutsummaryrefslogtreecommitdiffstats
path: root/vite.config.js
blob: 68076e9b12c8b901dbd6b3ff6f928f475a5dfa40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export default {
  build: {
    sourcemap: true,
    outDir: "dist",
    assetsDir: "assets",
    rollupOptions: {
      output: {
        manualChunks: {
          ol: ['ol'],
          bootstrap: ['bootstrap'],
          proj4: ['proj4'],
        }
      }
    }
  },
  css: {
    devSourcemap: true
  },
  resolve: {
    alias: {
      "~bootstrap": "node_modules/bootstrap",
      "~bootstrap-icons": "node_modules/bootstrap-icons",
      "~ol": "node_modules/ol",
    }
  },
  server: {
    host: "::1",
    port: 5173,
    strictPort: true,
    watch: {
      ignored: ['**/tiles/**'],
    },
  }
}