🔧 Enable storybook to be served from a subdir

This commit is contained in:
Belén Albeza 2024-08-01 10:44:44 +02:00
parent f683d65990
commit deef8abca5
3 changed files with 9 additions and 4 deletions

View file

@ -1,15 +1,14 @@
import { defineConfig } from "vite";
import { configDefaults } from 'vitest/config'
import { configDefaults } from "vitest/config";
import { resolve } from "path";
// https://vitejs.dev/config/
export default defineConfig({
test: {
exclude: [...configDefaults.exclude, 'target/**', 'resources/**'],
environment: 'jsdom'
exclude: [...configDefaults.exclude, "target/**", "resources/**"],
environment: "jsdom",
},
resolve: {
alias: {
"@target": resolve(__dirname, "./target/storybook"),