-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvelte.config.js
50 lines (41 loc) · 1.47 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 adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import preprocess from 'svelte-preprocess';
import path from 'path';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: [
vitePreprocess(),
preprocess({
scss: {
prependData: `
@use 'src/app/styles/_colors.scss' as colors;
`
}
})
],
kit: {
adapter: adapter(),
files: {
appTemplate : path.resolve('src', 'app', 'index.html'),
errorTemplate: path.resolve('src', 'app', 'error.html'),
assets: path.resolve('static'),
hooks: {
client: path.resolve('src', 'app', 'hooks', 'client.ts'),
server: path.resolve('src', 'app', 'hooks', 'server.ts'),
universal: path.resolve('src', 'app', 'hooks', 'universal.ts'),
},
lib: path.resolve('src', 'app', 'lib'),
params: path.resolve('routing', 'params'),
routes: path.resolve('routing', 'routes'),
serviceWorker: path.resolve('src', 'app', 'worker.ts')
},
alias: {
styles: path.resolve('src', 'app', 'styles'),
components: path.resolve('src', 'components'),
pages: path.resolve('src', 'pages'),
layouts: path.resolve('src', 'layouts'),
}
}
};
export default config;