-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsvelte.config.js
35 lines (33 loc) · 933 Bytes
/
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
/** @type {import('@sveltejs/kit').Config} */
import node from '@sveltejs/adapter-node';
import path from 'path';
const config = {
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
adapter: node({ out: 'build-node' }),
ssr: true,
hydrate: true,
vite: {
build: {
rollupOptions: {
output: {
intro: 'if(exports === undefined){var exports ={}; var self = {}}',
},
},
},
resolve: {
alias: {
'./runtimeConfig': './runtimeConfig.browser',
$static: path.resolve('./static'),
$stores: path.resolve('./src/stores'),
$components: path.resolve('./src/components'),
$helpers: path.resolve('./src/helpers'),
$graphql: path.resolve('./src/graphql'),
$data: path.resolve('./src/data'),
},
},
},
},
};
export default config;