forked from wordplaydev/wordplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
49 lines (46 loc) · 1.68 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
import adapter from '@sveltejs/adapter-static';
import preprocess from 'svelte-preprocess';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: preprocess(),
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: 'index.html',
}),
alias: {
'@components': path.resolve('./src/components'),
'@nodes': path.resolve('./src/nodes'),
'@runtime': path.resolve('./src/runtime'),
'@values': path.resolve('./src/values'),
'@conflicts': path.resolve('./src/conflicts'),
'@locale': path.resolve('./src/locale'),
'@concepts': path.resolve('./src/concepts'),
'@parser': path.resolve('./src/parser'),
'@input': path.resolve('./src/input'),
'@output': path.resolve('./src/output'),
'@basis': path.resolve('./src/basis'),
'@edit': path.resolve('./src/edit'),
'@models': path.resolve('./src/models'),
'@db': path.resolve('./src/db'),
},
csp: {
directives: {
'script-src': [
'self',
'https://fonts.googleapis.com',
'https://fonts.gstatic.com',
'https://www.googletagmanager.com',
'https://apis.google.com',
'https://*.googleapis.com',
'https://*.firebaseapp.com',
],
},
},
},
};
export default config;