25 lines
534 B
TypeScript
25 lines
534 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { crx } from '@crxjs/vite-plugin';
|
|
import manifest from './manifest.json';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
crx({ manifest }),
|
|
],
|
|
optimizeDeps: {
|
|
exclude: ['lucide-react'],
|
|
},
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
sidebar: 'sidebar.html',
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
hmr: false, // Completely disable HMR to prevent WebSocket connection attempts
|
|
},
|
|
}); |