Mercurial > code > home > repos > light9
annotate web/vite.config.ts @ 2409:ba2f00912e20
fix white output on RGBW devices
author | drewp@bigasterisk.com |
---|---|
date | Sat, 18 May 2024 22:43:43 -0700 |
parents | ef3cde3e81e8 |
children |
rev | line source |
---|---|
2033 | 1 import { defineConfig } from "vite"; |
2395
ef3cde3e81e8
switch collector output from json to avro (still over WS)
drewp@bigasterisk.com
parents:
2376
diff
changeset
|
2 import { nodePolyfills } from "vite-plugin-node-polyfills"; |
2033 | 3 |
4 export default defineConfig({ | |
2051
bfee787d7b5c
straighten out proxying and nginx+vite mixing
drewp@bigasterisk.com
parents:
2040
diff
changeset
|
5 base: "/", |
2376
4556eebe5d73
topdir reorgs; let pdm have its src/ dir; separate vite area from light9/
drewp@bigasterisk.com
parents:
2374
diff
changeset
|
6 root: "./web", |
4556eebe5d73
topdir reorgs; let pdm have its src/ dir; separate vite area from light9/
drewp@bigasterisk.com
parents:
2374
diff
changeset
|
7 publicDir: "../node_modules", |
2033 | 8 server: { |
9 host: "0.0.0.0", | |
10 strictPort: true, | |
2372
06bf6dae8e64
reorg tools into light9/web/ and a single vite instance
drewp@bigasterisk.com
parents:
2371
diff
changeset
|
11 port: 8300, |
2033 | 12 hmr: { |
2372
06bf6dae8e64
reorg tools into light9/web/ and a single vite instance
drewp@bigasterisk.com
parents:
2371
diff
changeset
|
13 port: 8301, |
2033 | 14 }, |
15 }, | |
2051
bfee787d7b5c
straighten out proxying and nginx+vite mixing
drewp@bigasterisk.com
parents:
2040
diff
changeset
|
16 clearScreen: false, |
2033 | 17 define: { |
18 global: {}, | |
19 }, | |
2395
ef3cde3e81e8
switch collector output from json to avro (still over WS)
drewp@bigasterisk.com
parents:
2376
diff
changeset
|
20 plugins: [nodePolyfills()], |
2033 | 21 }); |