michalvankodev-site/vite.config.ts

26 lines
639 B
TypeScript
Raw Normal View History

2023-01-17 20:57:28 +01:00
import { sveltekit } from '@sveltejs/kit/vite'
import { UserConfig } from 'vite'
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'
const config: UserConfig = {
plugins: [sveltekit(), vanillaExtractPlugin()],
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