Created
August 15, 2023 03:02
-
-
Save ageyev/56f6ef41e5a42accca7b47f7bed2ce8a to your computer and use it in GitHub Desktop.
vite.config.ts for react app -> gitlab pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { defineConfig } from "vitest/config"; | |
import react from "@vitejs/plugin-react"; | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [react()], | |
server: { | |
open: true | |
}, | |
base: "./", | |
root: "./root", | |
build: { | |
assetsDir: "assets", // default | |
outDir: "../build", // | |
sourcemap: true | |
}, | |
test: { | |
globals: true, | |
environment: "jsdom", | |
setupFiles: "src/setupTests", | |
mockReset: true | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment