2024-02-18 09:27:30 +00:00
|
|
|
import legacy from "@vitejs/plugin-legacy";
|
|
|
|
import basicSSL from "@vitejs/plugin-basic-ssl";
|
|
|
|
import path from "node:path";
|
|
|
|
import { defineConfig } from "vite";
|
2024-02-16 05:05:49 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [legacy(), basicSSL()],
|
|
|
|
build: {
|
|
|
|
outDir: "../dist",
|
|
|
|
rollupOptions: {
|
|
|
|
external: "./src",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 8080,
|
|
|
|
strictPort: true,
|
|
|
|
https: false,
|
|
|
|
},
|
|
|
|
test: {
|
|
|
|
environment: "jsdom",
|
|
|
|
//setupFiles: ["./src/tests/testSetup.ts"],
|
|
|
|
include: ["./src/**/*.test.ts", "./src/**/*.test.tsx"],
|
|
|
|
globals: true,
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: [
|
|
|
|
{
|
|
|
|
find: "@",
|
|
|
|
replacement: path.resolve(__dirname, "./src"),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2024-02-18 09:27:30 +00:00
|
|
|
});
|