mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Chore: add jotai vite plugin
This commit is contained in:
parent
99e0576da4
commit
b023c451f3
@ -1,4 +1,6 @@
|
||||
import react from '@vitejs/plugin-react'
|
||||
import jotaiDebugLabel from 'jotai/babel/plugin-debug-label'
|
||||
import jotaiReactRefresh from 'jotai/babel/plugin-react-refresh'
|
||||
import { defineConfig, splitVendorChunkPlugin } from 'vite'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
import windiCSS from 'vite-plugin-windicss'
|
||||
@ -8,7 +10,9 @@ export default defineConfig(
|
||||
env => ({
|
||||
plugins: [
|
||||
// only use react-fresh
|
||||
env.mode === 'development' && react(),
|
||||
env.mode === 'development' && react({
|
||||
babel: { plugins: [jotaiDebugLabel, jotaiReactRefresh] },
|
||||
}),
|
||||
tsConfigPath(),
|
||||
windiCSS(),
|
||||
VitePWA({
|
||||
|
Loading…
x
Reference in New Issue
Block a user