2023-01-17 20:57:28 +01:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite'
|
2023-01-31 21:23:35 +01:00
|
|
|
import type { UserConfig } from 'vite'
|
2023-01-17 20:57:28 +01:00
|
|
|
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
|
|
|
|
|
|
|
|
const config: UserConfig = {
|
2023-01-31 21:23:35 +01:00
|
|
|
plugins: [vanillaExtractPlugin(), sveltekit()],
|
2023-01-17 20:57:28 +01:00
|
|
|
test: {
|
|
|
|
include: ['src/**/*.{test,spec}.{js,ts}'],
|
|
|
|
},
|
|
|
|
server: { fs: { allow: ['static/build'] } },
|
|
|
|
|
|
|
|
// kit: {
|
|
|
|
// adapter: adapterStatic(),
|
|
|
|
// vite: {
|
|
|
|
// plugins: [vanillaExtractPlugin()],
|
|
|
|
// server: { fs: { allow: ['static/build'] } },
|
|
|
|
// },
|
|
|
|
// prerender: { default: true },
|
|
|
|
// },
|
|
|
|
// preprocess: preprocess({
|
|
|
|
// sourceMap: dev,
|
|
|
|
// }),
|
|
|
|
}
|
|
|
|
|
|
|
|
export default config
|