WebChat/wxt.config.ts
2023-12-01 13:33:49 +08:00

25 lines
560 B
TypeScript

import path from 'node:path'
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: path.resolve('src'),
imports: false,
entrypointsDir: path.resolve('src', 'app'),
runner: {
startUrls: ['https://www.example.com/']
},
manifest: {
permissions: ['storage']
},
vite: () => ({
define: {
__DEV__: isDev,
__NAME__: JSON.stringify(name)
},
plugins: [react()]
})
})