-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
svelte.config.js
50 lines (48 loc) · 1.11 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
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: ['.jesuslivesineveryone', '.whokilledthemuffinman', '.svelte.md', '.svelte'],
kit: {
csp: {
directives: {
'script-src': ['self']
}
},
files: {
assets: 'public',
lib: 'source/components',
routes: 'source/pages',
template: 'source/template.html',
// while we specify a path for the service worker, we expect it to not exist in the test
serviceWorker: 'source/service-worker'
},
appDir: '_wheee',
floc: true,
inlineStyleThreshold: 1024,
outDir: '.custom-out-dir',
trailingSlash: 'always',
vite: {
build: {
minify: false
},
clearScreen: false,
server: {
// TODO: required to support ipv6, remove on vite 3
// https://github.com/vitejs/vite/issues/7075
host: 'localhost',
fs: {
allow: [path.resolve('../../../src')]
},
watch: {
// perf, do not watch playwright output dir
ignored: ['**/test-results/**']
}
}
},
paths: {
base: '/path-base',
assets: 'https://cdn.example.com/stuff'
}
}
};
export default config;