2021-10-07 16:51:44 +02:00
|
|
|
import adapterStatic from '@sveltejs/adapter-static'
|
|
|
|
import preprocess from 'svelte-preprocess'
|
|
|
|
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
|
|
|
|
|
|
|
|
const mode = process.env.NODE_ENV
|
|
|
|
const dev = mode === 'development'
|
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
|
|
|
kit: {
|
|
|
|
adapter: adapterStatic(),
|
2022-05-07 21:12:26 +02:00
|
|
|
vite: {
|
|
|
|
plugins: [vanillaExtractPlugin()],
|
|
|
|
server: { fs: { allow: ['static/build'] } },
|
|
|
|
},
|
2022-04-21 20:48:34 +02:00
|
|
|
prerender: { default: true },
|
2021-10-07 16:51:44 +02:00
|
|
|
},
|
|
|
|
preprocess: preprocess({
|
|
|
|
sourceMap: dev,
|
|
|
|
}),
|
|
|
|
}
|
|
|
|
|
|
|
|
export default config
|