Files
new-markdown/vite.config.ts

15 lines
408 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// Tauri 约定:固定 1420 端口,devUrl 与此对应;src-tauri 变更不触发前端热更新。
export default defineConfig({
plugins: [react()],
clearScreen: false,
server: {
port: 1420,
strictPort: true,
watch: { ignored: ['**/src-tauri/**'] },
},
build: { target: ['chrome105', 'safari15'] },
})