refactor: Replace Rollup with Vite (#2656)

This is a high risk change: every byte the card ships is emitted by a
different bundler, minified by a different minifier, and every
stylesheet is compiled by a different sass. The intent is that the
card's behaviour is unchanged.

**Significant development win**: Build time drops from 24s to 1.1s 🎉 

Also adds a test suite ('dist') that runs against the built bundle.
This commit is contained in:
Dermot Duffy
2026-08-04 15:00:13 -07:00
committed by GitHub
parent 06bcfd58ba
commit 80ec92e3b2
105 changed files with 1273 additions and 1719 deletions
+4 -1
View File
@@ -11,10 +11,13 @@
"workspaceFolder": "${localWorkspaceFolder}",
"initializeCommand": [".devcontainer/scripts/devcontainer_initialize.sh"],
"postCreateCommand": ["yarn", "install"],
"postAttachCommand": {
"preview": "yarn build && yarn preview"
},
"forwardPorts": [10001, "homeassistant:8123", "frigate:5000"],
"portsAttributes": {
"10001": {
"label": "Rollup",
"label": "Vite",
"onAutoForward": "silent"
},
"homeassistant:8123": {