mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-28 04:11:16 +01:00
Switch to Preact!!!
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import preact from '@preact/preset-vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { ViteRsw } from 'vite-plugin-rsw';
|
||||
import topLevelAwait from 'vite-plugin-top-level-await';
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [react(), ViteRsw(), topLevelAwait()],
|
||||
plugins: [preact({ devToolsEnabled: true }), ViteRsw(), topLevelAwait()],
|
||||
|
||||
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
|
||||
// prevent vite from obscuring rust errors
|
||||
@@ -15,6 +15,7 @@ export default defineConfig({
|
||||
port: 1420,
|
||||
strictPort: true,
|
||||
},
|
||||
|
||||
// to make use of `TAURI_DEBUG` and other env variables
|
||||
// https://tauri.studio/v1/api/config#buildconfig.beforedevcommand
|
||||
envPrefix: ['VITE_', 'TAURI_'],
|
||||
|
||||
Reference in New Issue
Block a user