forked from Mirrors/gomuks
36 lines
569 B
TypeScript
36 lines
569 B
TypeScript
import react from "@vitejs/plugin-react-swc"
|
|
import { defineConfig } from "vite"
|
|
import svgr from "vite-plugin-svgr"
|
|
|
|
export default defineConfig({
|
|
base: "./",
|
|
build: {
|
|
target: ["esnext", "firefox128"],
|
|
},
|
|
plugins: [
|
|
react(),
|
|
svgr({
|
|
svgrOptions: {
|
|
replaceAttrValues: {
|
|
"#5f6368": "currentColor",
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@": "/src",
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/_gomuks/websocket": {
|
|
target: "http://localhost:29325",
|
|
ws: true,
|
|
},
|
|
"/_gomuks": {
|
|
target: "http://localhost:29325",
|
|
},
|
|
},
|
|
},
|
|
})
|