2023-11-05 18:56:50 +00:00
|
|
|
import path from 'node:path'
|
2023-11-04 18:18:09 +00:00
|
|
|
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({
|
2023-11-05 18:56:50 +00:00
|
|
|
srcDir: path.resolve('src'),
|
2023-11-30 08:50:18 +00:00
|
|
|
imports: false,
|
2023-11-05 18:56:50 +00:00
|
|
|
entrypointsDir: path.resolve('src', 'app'),
|
2023-11-04 18:18:09 +00:00
|
|
|
runner: {
|
|
|
|
startUrls: ['https://www.example.com/']
|
|
|
|
},
|
|
|
|
vite: () => ({
|
|
|
|
define: {
|
|
|
|
__DEV__: isDev,
|
|
|
|
__NAME__: JSON.stringify(name)
|
|
|
|
},
|
|
|
|
plugins: [react()]
|
|
|
|
})
|
|
|
|
})
|