-
Notifications
You must be signed in to change notification settings - Fork 1
/
svelte.config.js
58 lines (53 loc) · 1.58 KB
/
svelte.config.js
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
import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from "@sveltejs/kit/vite";
import { mdsvex } from "mdsvex";
const mdsvexOptions = {
extensions: [".md", ".svx"],
};
const dev = process.argv.includes("dev");
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
extensions: [".svelte", ".md", ".svx"],
preprocess: [mdsvex(mdsvexOptions), vitePreprocess()],
kit: {
adapter: adapter({
fallback: undefined,
precompress: true,
strict: true,
}),
paths: {
base: dev ? "" : process.env.BASE_PATH,
},
prerender: {
entries: [
"/",
"/sandbox",
"/sandbox/1",
"/sandbox/2",
"/docs/getting-started",
"/docs/basemap-map-usage",
// '/docs/2-demo',
"/docs/controls-layers",
"/docs/drawtool-basic-draw",
"/docs/ui-layers-marker",
"/docs/ui-layers-popup",
"/docs/ui-layers-tooltip",
"/docs/raster-layers-tilelayer",
"/docs/raster-layers-tilelayerwms",
"/docs/raster-layers-imageoverlay",
"/docs/raster-layers-videooverlay",
"/docs/vector-layers-polyline",
"/docs/vector-layers-polygon",
"/docs/vector-layers-circle",
"/docs/vector-layers-circlemarker",
"/docs/vector-layers-rectangle",
"/docs/other-layers-layergroup",
"/docs/other-layers-featuregroup",
"/docs/other-layers-geojson",
],
},
},
};
export default config;