-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsvelte.config.js
30 lines (27 loc) · 910 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
import adapter from '@sveltejs/adapter-static';
import { sveltePreprocess } from 'svelte-preprocess';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: sveltePreprocess(),
kit: {
adapter: adapter({
pages: 'docs',
assets: 'docs',
fallback: undefined
}),
alias: {
'svelte-splitpanes': path.resolve('.', 'src/lib'),
$comp: path.resolve('./src/comp')
},
paths: {
// Usually the base path will be the root (i.e. defaults by kit to the empty "" path since the env var is undefined),
// but on the official documentation build we set this environment
// variable to the base path where we're deploying to.
base: process.env.BASE_PATH
}
}
};
export default config;