init
This commit is contained in:
+10
-6
@@ -1,4 +1,4 @@
|
||||
import { defineConfig } from "vite";
|
||||
import {defineConfig} from "vite";
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import ui from '@nuxt/ui/vite'
|
||||
|
||||
@@ -11,7 +11,11 @@ export default defineConfig(async () => ({
|
||||
vue(),
|
||||
ui()
|
||||
],
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/src'
|
||||
}
|
||||
},
|
||||
// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`
|
||||
//
|
||||
// 1. prevent vite from obscuring rust errors
|
||||
@@ -24,10 +28,10 @@ export default defineConfig(async () => ({
|
||||
cors: true,
|
||||
hmr: host
|
||||
? {
|
||||
protocol: "ws",
|
||||
host,
|
||||
port: 1421,
|
||||
}
|
||||
protocol: "ws",
|
||||
host,
|
||||
port: 1421,
|
||||
}
|
||||
: undefined,
|
||||
watch: {
|
||||
// 3. tell vite to ignore watching `src-tauri`
|
||||
|
||||
Reference in New Issue
Block a user