-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsvelte.config.js
More file actions
37 lines (34 loc) · 867 Bytes
/
svelte.config.js
File metadata and controls
37 lines (34 loc) · 867 Bytes
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
import adapter from '@sveltejs/adapter-static';
import { sveltePreprocess } from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
sveltePreprocess({
postcss: true
})
],
kit: {
adapter: adapter({
fallback: '200.html'
}),
paths: {
base: process.env.BUILD_BASE_PATH
},
alias: {
$config: './config',
$static: './static',
$assets: './src/gen-assets/'
},
router: {
type: 'hash'
},
serviceWorker: {
options: {
scope: process.env.BUILD_BASE_PATH
}
}
}
};
export default config;