From 5a5cb4f8917909bbb885081dca24f9fe7d9079bb Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 16 Nov 2020 09:16:00 +0000 Subject: [PATCH] Add WIP Vite config --- VITE_NOTES.md | 27 + build-scripts/vite/vite.config.ts | 61 ++ package.json | 1 + tsconfig.json | 1 + yarn.lock | 1166 ++++++++++++++++++++++++++++- 5 files changed, 1221 insertions(+), 35 deletions(-) create mode 100644 VITE_NOTES.md create mode 100644 build-scripts/vite/vite.config.ts diff --git a/VITE_NOTES.md b/VITE_NOTES.md new file mode 100644 index 0000000000..b1fe6f42e9 --- /dev/null +++ b/VITE_NOTES.md @@ -0,0 +1,27 @@ +# Vite + +Vite is a new type of compiler that compiles each file as they come in. + +## Running Vite + +- Checkout this branch +- `yarn` +- Run `script/develop` until it finishes first webpack build. Then turn it off. We use this right now to prepare the static files + auth/onboarding pages. +- Update `hass_frontend/index.html`, find where we import the scripts and replace with: + ```html +