Skip to content
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
import tailwindcss from "@tailwindcss/vite";

export default defineConfig({
  plugins: [fresh(), tailwindcss()],
  server: {
    watch: {
      // The local dev database lives in the project root, so every gameplay
      // write (opening a pack, saving progress) looked like a source change
      // and made vite full-reload the page, throwing the player back to the
      // city screen. These files are never part of the module graph.
      ignored: ["**/*.db", "**/*.db-journal", "**/*.db-wal", "**/*.db-shm"],
    },
  },
});