35 lines
798 B
TypeScript
35 lines
798 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import checker from "vite-plugin-checker";
|
|
import { reactRouter } from "@react-router/dev/vite";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
checker({
|
|
biome: { command: "check", dev: { command: "lint" } },
|
|
typescript: true,
|
|
stylelint: { lintCommand: "stylelint ./app/**/*.css" },
|
|
}),
|
|
reactRouter(),
|
|
],
|
|
server: {
|
|
fs: {
|
|
deny: [".devenv/", ".direnv/"],
|
|
},
|
|
watch: {
|
|
ignored: [
|
|
"**/.devenv/**",
|
|
"**/.devenv",
|
|
"**/.direnv/**",
|
|
"**/.direnv",
|
|
"**/.git/**",
|
|
"**/.git",
|
|
"**/node_modules/**",
|
|
"**/node_modules",
|
|
"**/dist/**",
|
|
"**/dist",
|
|
],
|
|
},
|
|
},
|
|
});
|