29 lines
539 B
TypeScript
29 lines
539 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
export default defineConfig(async () => ({
|
|
plugins: [
|
|
react({
|
|
jsxImportSource: "@emotion/react",
|
|
babel: {
|
|
plugins: ["@emotion/babel-plugin"],
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
clearScreen: false,
|
|
server: {
|
|
port: 3000,
|
|
host: "127.0.0.1",
|
|
strictPort: true,
|
|
watch: {
|
|
ignored: ["**/src-tauri/**"],
|
|
},
|
|
},
|
|
}));
|