forked from ocluf/justship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svelte.config.js
34 lines (32 loc) · 863 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
import adapter from '@sveltejs/adapter-vercel'
import { sveltePreprocess } from 'svelte-preprocess'
import tailwindcss from 'tailwindcss';
import autoprefixer from 'autoprefixer';
import path from 'path'
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: sveltePreprocess({
pug: true,
plugins: [tailwindcss(), autoprefixer()],
}),
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: null,
precompress: false,
strict: true
}),
alias: {
$actions: path.resolve('./src/lib/actions'),
$components: path.resolve('./src/lib/components'),
$utils: path.resolve('./src/lib/utils'),
$hooks: path.resolve('./src/lib/hooks'),
},
},
compilerOptions: {
// hide warning from pug syntax
warningFilter: ({ code }) => code != 'attribute_quoted',
},
};
export default config;