2025-12-23 16:30:04 +01: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";
|
2025-12-23 16:30:04 +01:00
|
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
2024-10-19 21:05:52 +02:00
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [
|
|
|
|
|
checker({
|
|
|
|
|
biome: { command: "check", dev: { command: "lint" } },
|
2025-12-26 13:54:09 +01:00
|
|
|
typescript: {
|
|
|
|
|
tsconfigPath: "./tsconfig.cssmodulehack.json",
|
|
|
|
|
},
|
2025-12-23 16:30:04 +01:00
|
|
|
stylelint: { lintCommand: "stylelint ./app/**/*.css" },
|
2024-10-19 21:05:52 +02:00
|
|
|
}),
|
2025-12-23 16:30:04 +01:00
|
|
|
reactRouter(),
|
|
|
|
|
tsconfigPaths(),
|
2024-10-19 21:05:52 +02:00
|
|
|
],
|
2025-12-23 17:00:29 +01:00
|
|
|
css: {
|
|
|
|
|
modules: {
|
|
|
|
|
localsConvention: "camelCaseOnly",
|
|
|
|
|
},
|
|
|
|
|
},
|
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",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|