mirror of
https://github.com/molvqingtai/WebChat.git
synced 2025-11-26 03:28:35 +08:00
20 lines
405 B
TypeScript
20 lines
405 B
TypeScript
|
|
import { defineConfig } from 'wxt'
|
||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
import { name } from './package.json'
|
||
|
|
|
||
|
|
const isDev = process.env.NODE_ENV === 'development'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
srcDir: 'src',
|
||
|
|
runner: {
|
||
|
|
startUrls: ['https://www.example.com/']
|
||
|
|
},
|
||
|
|
vite: () => ({
|
||
|
|
define: {
|
||
|
|
__DEV__: isDev,
|
||
|
|
__NAME__: JSON.stringify(name)
|
||
|
|
},
|
||
|
|
plugins: [react()]
|
||
|
|
})
|
||
|
|
})
|