mirror of
https://gitcode.com/JianFeeeee/webui4frpc.git
synced 2026-10-15 12:14:37 +00:00
style(web): 保持 vite.config.ts 单引号风格
This commit is contained in:
@ -1,17 +1,17 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from 'vite'
|
||||||
import vue from "@vitejs/plugin-vue";
|
import vue from '@vitejs/plugin-vue'
|
||||||
import { fileURLToPath } from "node:url";
|
import { fileURLToPath } from 'node:url'
|
||||||
|
|
||||||
// Backend default port (cmd/webui4frpc -addr). Override with VITE_PROXY_TARGET.
|
// Backend default port (cmd/webui4frpc -addr). Override with VITE_PROXY_TARGET.
|
||||||
const backend = process.env.VITE_PROXY_TARGET || "http://127.0.0.1:7500";
|
const backend = process.env.VITE_PROXY_TARGET || 'http://127.0.0.1:7500'
|
||||||
|
|
||||||
// The frontend is served by the Go binary at / (embedded dist), and talks to
|
// The frontend is served by the Go binary at / (embedded dist), and talks to
|
||||||
// the same origin via /api/manager/*.
|
// the same origin via /api/manager/*.
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue()],
|
||||||
base: "/",
|
base: '/',
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
|
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
preprocessorOptions: {
|
preprocessorOptions: {
|
||||||
@ -21,11 +21,11 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
outDir: "dist",
|
outDir: 'dist',
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": backend,
|
'/api': backend,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user