remove tauri
This commit is contained in:
1 parent
dacb6cd249
commit
7831ae4b97
27 files changed
+14
-5778
No files matched your search
@@ -37,37 +37,6 @@ export default defineConfig({
|
||||
rewriteWsOrigin: true,
|
||||
}
|
||||
},
|
||||
// make sure this port matches the devUrl port in tauri.conf.json file
|
||||
port: 5173,
|
||||
// Tauri expects a fixed port, fail if that port is not available
|
||||
strictPort: true,
|
||||
// if the host Tauri is expecting is set, use it
|
||||
host: TAURI_HOST || false,
|
||||
hmr: TAURI_HOST
|
||||
? {
|
||||
protocol: 'ws',
|
||||
host: TAURI_HOST,
|
||||
port: 1421,
|
||||
}
|
||||
: undefined,
|
||||
|
||||
watch: {
|
||||
// tell vite to ignore watching `src-tauri`
|
||||
ignored: ['**/src-tauri/**'],
|
||||
},
|
||||
},
|
||||
// Env variables starting with the item of `envPrefix` will be exposed in tauri's source code through `import.meta.env`.
|
||||
envPrefix: ['VITE_', 'TAURI_ENV_*'],
|
||||
build: {
|
||||
// Tauri uses Chromium on Windows and WebKit on macOS and Linux
|
||||
target:
|
||||
process.env.TAURI_ENV_PLATFORM == 'windows'
|
||||
? 'chrome105'
|
||||
: 'safari13',
|
||||
// don't minify for debug builds
|
||||
minify: !process.env.TAURI_ENV_DEBUG ? 'esbuild' : false,
|
||||
// produce sourcemaps for debug builds
|
||||
sourcemap: !!process.env.TAURI_ENV_DEBUG,
|
||||
},
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user