probo-app/frontend/vite.config.ts

25 lines
542 B
TypeScript
Raw Normal View History

2023-06-29 10:52:15 +02:00
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
// import path from 'path'
2023-06-29 10:52:15 +02:00
export default defineConfig({
server: {
fs: {
// Allow serving files from the frontend project root
// allow: ['.'],
},
},
resolve: {
alias: {
// This alias finishes the ability to reference our
// frontend/ with `@path/to/file`.
//
// '@': path.resolve(__dirname, './'),
},
},
plugins: [sveltekit()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
2023-06-29 10:52:15 +02:00
});