2025-04-02 21:41:52 +02:00
|
|
|
import { reactRouter } from "@react-router/dev/vite";
|
2024-10-19 21:05:52 +02:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
|
import checker from "vite-plugin-checker";
|
|
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [
|
|
|
|
|
checker({
|
|
|
|
|
biome: { command: "check", dev: { command: "lint" } },
|
|
|
|
|
typescript: true,
|
2025-04-02 15:57:57 +02:00
|
|
|
stylelint: { lintCommand: "stylelint ./app/**/*.css" },
|
2024-10-19 21:05:52 +02:00
|
|
|
}),
|
2025-04-02 15:57:57 +02:00
|
|
|
reactRouter(),
|
2024-10-19 21:05:52 +02:00
|
|
|
],
|
|
|
|
|
server: {
|
|
|
|
|
fs: {
|
|
|
|
|
deny: [".devenv/", ".direnv/"],
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
ignored: [
|
|
|
|
|
"**/.devenv/**",
|
|
|
|
|
"**/.devenv",
|
|
|
|
|
"**/.direnv/**",
|
|
|
|
|
"**/.direnv",
|
|
|
|
|
"**/.git/**",
|
|
|
|
|
"**/.git",
|
|
|
|
|
"**/node_modules/**",
|
|
|
|
|
"**/node_modules",
|
|
|
|
|
"**/dist/**",
|
|
|
|
|
"**/dist",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|