-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsvelte.config.js
46 lines (43 loc) · 1.09 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
import { getAssetsPath, getBasePath } from './bin/svelte-kit/paths/index.js';
import adapter from '@sveltejs/adapter-static';
import autoprefixer from 'autoprefixer';
import { sveltePreprocess } from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sveltePreprocess({
preserve: ['ld+json'],
scss: { quietDeps: true, api: 'modern-compiler' },
postcss: {
plugins: [autoprefixer],
},
}),
kit: {
appDir: '_app',
paths: {
assets: getAssetsPath(),
base: getBasePath(),
},
adapter: adapter({
pages: 'dist',
assets: 'dist/cdn',
fallback: null,
precompress: false,
}),
files: {
assets: 'src/statics',
lib: 'src/lib',
routes: 'pages',
appTemplate: 'src/template.html',
},
alias: {
$lib: './src/lib',
'$lib/*': './src/lib/*',
'$utils/*': './src/utils/*',
$pkg: './package.json',
$images: './src/statics/images',
'$images/*': './src/statics/images/*',
'$locales/*': './locales/*',
},
},
};
export default config;