-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathvite.config.ts
More file actions
76 lines (75 loc) · 4.16 KB
/
vite.config.ts
File metadata and controls
76 lines (75 loc) · 4.16 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { defineConfig } from 'vite';
import { resolve } from 'path';
export default defineConfig({
root: 'examples',
publicDir: 'public',
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
'@examples': resolve(__dirname, 'examples'),
},
},
server: {
port: 5173,
open: true,
fs: {
allow: [resolve(__dirname)],
},
},
build: {
outDir: 'dist',
rollupOptions: {
input: {
main: resolve(__dirname, 'examples/index.html'),
// MapLibre examples
maplibre: resolve(__dirname, 'examples/maplibre/index.html'),
'maplibre-cog': resolve(__dirname, 'examples/maplibre/cog_layer.html'),
'maplibre-arc': resolve(__dirname, 'examples/maplibre/arc_layer.html'),
'maplibre-pointcloud': resolve(__dirname, 'examples/maplibre/pointcloud_layer.html'),
'maplibre-lidar': resolve(__dirname, 'examples/maplibre/lidar_layer.html'),
'maplibre-zarr': resolve(__dirname, 'examples/maplibre/zarr_layer.html'),
'maplibre-scatterplot': resolve(__dirname, 'examples/maplibre/scatterplot_layer.html'),
'maplibre-hexagon': resolve(__dirname, 'examples/maplibre/hexagon_layer.html'),
'maplibre-trips': resolve(__dirname, 'examples/maplibre/trips_layer.html'),
'maplibre-heatmap': resolve(__dirname, 'examples/maplibre/heatmap_layer.html'),
'maplibre-path': resolve(__dirname, 'examples/maplibre/path_layer.html'),
// New DeckGL layers
'maplibre-bitmap': resolve(__dirname, 'examples/maplibre/bitmap_layer.html'),
'maplibre-column': resolve(__dirname, 'examples/maplibre/column_layer.html'),
'maplibre-terrain': resolve(__dirname, 'examples/maplibre/terrain_layer.html'),
'maplibre-greatcircle': resolve(__dirname, 'examples/maplibre/greatcircle_layer.html'),
'maplibre-h3hexagon': resolve(__dirname, 'examples/maplibre/h3hexagon_layer.html'),
'maplibre-tile': resolve(__dirname, 'examples/maplibre/tile_layer.html'),
'maplibre-mvt': resolve(__dirname, 'examples/maplibre/mvt_layer.html'),
'maplibre-tile3d': resolve(__dirname, 'examples/maplibre/tile3d_layer.html'),
'maplibre-gridcell': resolve(__dirname, 'examples/maplibre/gridcell_layer.html'),
'maplibre-solidpolygon': resolve(__dirname, 'examples/maplibre/solidpolygon_layer.html'),
'maplibre-s2': resolve(__dirname, 'examples/maplibre/s2_layer.html'),
'maplibre-quadkey': resolve(__dirname, 'examples/maplibre/quadkey_layer.html'),
'maplibre-geohash': resolve(__dirname, 'examples/maplibre/geohash_layer.html'),
'maplibre-h3cluster': resolve(__dirname, 'examples/maplibre/h3cluster_layer.html'),
'maplibre-wms': resolve(__dirname, 'examples/maplibre/wms_layer.html'),
'maplibre-simplemesh': resolve(__dirname, 'examples/maplibre/simplemesh_layer.html'),
'maplibre-scenegraph': resolve(__dirname, 'examples/maplibre/scenegraph_layer.html'),
'maplibre-geojson': resolve(__dirname, 'examples/maplibre/geojson_layer.html'),
'maplibre-icon': resolve(__dirname, 'examples/maplibre/icon_layer.html'),
'maplibre-polygon': resolve(__dirname, 'examples/maplibre/polygon_layer.html'),
'maplibre-text': resolve(__dirname, 'examples/maplibre/text_layer.html'),
'maplibre-contour': resolve(__dirname, 'examples/maplibre/contour_layer.html'),
'maplibre-control-grid': resolve(__dirname, 'examples/maplibre/control_grid.html'),
'maplibre-geophoto': resolve(__dirname, 'examples/maplibre/geophoto_layer.html'),
'maplibre-pmtiles': resolve(__dirname, 'examples/maplibre/pmtiles_layer.html'),
// Other map libraries
leaflet: resolve(__dirname, 'examples/leaflet/index.html'),
mapbox: resolve(__dirname, 'examples/mapbox/index.html'),
openlayers: resolve(__dirname, 'examples/openlayers/index.html'),
// 3D visualization
cesium: resolve(__dirname, 'examples/cesium/index.html'),
potree: resolve(__dirname, 'examples/potree/index.html'),
// GPU-accelerated
deckgl: resolve(__dirname, 'examples/deckgl/index.html'),
keplergl: resolve(__dirname, 'examples/keplergl/index.html'),
},
},
},
});