Skip to content

Commit bbc26a3

Browse files
committed
chore: rsw
1 parent 6f3642a commit bbc26a3

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ dist-ssr
2626
# rsw
2727
.rsw/
2828
target/
29-
Cargo.lock
29+
Cargo.lock
30+
.woap

src-tauri/tauri.conf.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@
6868
"resizable": true,
6969
"fullscreen": false,
7070
"title": "Oh My Box",
71-
"transparent": true
71+
"transparent": true,
72+
"label": "main",
73+
"url": "index.html"
7274
}
7375
]
7476
}

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { defineConfig } from 'vite';
22
import react from '@vitejs/plugin-react';
33
import tsconfigPaths from 'vite-tsconfig-paths';
44
import Unocss from 'unocss/vite';
5+
import ViteRsw from 'vite-plugin-rsw';
56

67
import unoOptions from './unocss';
78

89
// https://vitejs.dev/config/
910
export default defineConfig({
1011
plugins: [
12+
ViteRsw(),
1113
Unocss(unoOptions),
1214
tsconfigPaths(),
1315
react(),

0 commit comments

Comments
 (0)