repos
/ finance-rust master

finance-rust

mirror archived upstream

Single-binary self-hosted market watcher for stocks, ETFs, indexes, and futures: live charts, key stats, fundamentals, SEC filings, and SSE streaming.

axumdockerfinancerustself-hostedsqlitestocksvite

924 B · 30 lines · JavaScript Raw History
 1import { resolve } from "path";
 2import { defineConfig } from "vite";
 3
 4// Mirrors the sibling Rust apps:
 5// - Entry points live under static_src/{base,home,symbol,health,search}
 6// - Vite outputs to ../dist/ with content-hashed filenames
 7// - The Rust binary reads dist/.vite/manifest.json to resolve hashed names
 8export default defineConfig({
 9  base: "/static/",
10  build: {
11    outDir: resolve(__dirname, "../dist"),
12    emptyOutDir: true,
13    manifest: true,
14    rollupOptions: {
15      input: {
16        base: resolve(__dirname, "static_src/base/index.js"),
17        home: resolve(__dirname, "static_src/home/index.js"),
18        symbol: resolve(__dirname, "static_src/symbol/index.js"),
19        health: resolve(__dirname, "static_src/health/index.js"),
20        search: resolve(__dirname, "static_src/search/index.js"),
21      },
22    },
23  },
24  css: {
25    preprocessorOptions: {
26      scss: { quietDeps: true },
27    },
28  },
29});