vite.config.js 501 B

1234567891011121314151617181920
  1. import { defineConfig } from "vite";
  2. import wails from "@wailsio/runtime/plugins/vite";
  3. // https://vitejs.dev/config/
  4. export default defineConfig({
  5. server: {
  6. host: "127.0.0.1",
  7. port: Number(process.env.WAILS_VITE_PORT) || 9245,
  8. strictPort: true,
  9. },
  10. build: {
  11. rollupOptions: {
  12. input: {
  13. main: "index.html", // 主窗口
  14. ticker: "ticker.html", // 置顶滚动条窗口(股票条 / 新闻条)
  15. },
  16. },
  17. },
  18. plugins: [wails("./bindings")],
  19. });