-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathsvelte.config.js
41 lines (37 loc) · 994 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
36
37
38
39
40
41
import ghpagesAdapter from 'svelte-adapter-ghpages';
import path from 'path';
import { fileURLToPath } from 'url';
if (typeof self === 'undefined') {
globalThis.self = globalThis;
}
const dirname = path.dirname(fileURLToPath(import.meta.url));
const outDir = path.join(dirname, 'build/eslint-plugin-svelte');
/** @type {import('@sveltejs/kit').Config} */
const config = {
compilerOptions: {
preserveWhitespace: true
},
extensions: ['.svelte', '.md'],
kit: {
paths: {
base: '/eslint-plugin-svelte',
relative: false
},
adapter: ghpagesAdapter({
// default options are shown
pages: outDir,
assets: outDir
}),
files: {
routes: path.join(dirname, './src/routes'),
appTemplate: path.join(dirname, './src/app.html'),
hooks: {
server: path.join(dirname, './src/hooks/server'),
client: path.join(dirname, './src/hooks/client')
},
lib: path.join(dirname, './src/lib'),
assets: path.join(dirname, './statics')
}
}
};
export default config;