rss-reader/vite.config.js

34 lines
642 B
JavaScript
Raw Normal View History

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"),
},
],
},
});