diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 393829d..62af567 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -31,8 +31,14 @@ jobs:
with:
node-version: 22.x
+ - name: Uninstall dev deps with scripts
+ run: npm remove @vite-pwa/assets-generator --force --ignore-scripts=true
+
- name: Install dependencies
- run: npm install --ignore-scripts --force
+ run: npm i --force --ignore-scripts=true
+
+ - name: Install dev deps with scripts
+ run: npm i @vite-pwa/assets-generator -D --force
- name: Build
run: bun run build
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml
index 9913e26..103a20a 100644
--- a/.github/workflows/preview.yml
+++ b/.github/workflows/preview.yml
@@ -51,8 +51,14 @@ jobs:
with:
node-version: 22.x
+ - name: Uninstall dev deps with scripts
+ run: npm remove @vite-pwa/assets-generator --force --ignore-scripts=true
+
- name: Install dependencies
- run: npm install --ignore-scripts --force
+ run: npm i --force --ignore-scripts=true
+
+ - name: Install dev deps with scripts
+ run: npm i @vite-pwa/assets-generator -D --force
- name: Build
run: bun run build
diff --git a/admin/client.tsx b/admin/client.tsx
index d88d793..4f63820 100644
--- a/admin/client.tsx
+++ b/admin/client.tsx
@@ -1,9 +1,11 @@
+import '~/lib/watcher.ts'
+
import { cleanup, hmr, mount } from 'sigui'
import { Admin } from '~/admin/Admin.tsx'
import { setState, state } from '~/src/state.ts'
export const start = mount('#container', target => {
- target.replaceChildren(