| 123456789101112131415161718192021 |
- import { defineConfig } from "vite";
- import wails from "@wailsio/runtime/plugins/vite";
- // https://vitejs.dev/config/
- export default defineConfig({
- server: {
- host: "127.0.0.1",
- port: Number(process.env.WAILS_VITE_PORT) || 9245,
- strictPort: true,
- },
- build: {
- rollupOptions: {
- input: {
- main: "index.html", // 主窗口
- ticker: "ticker.html", // 置顶滚动条窗口(股票条 / 新闻条)
- led: "led.html", // LED 点阵滚动文字窗口
- },
- },
- },
- plugins: [wails("./bindings")],
- });
|