27 lines
654 B
TypeScript
Executable File
27 lines
654 B
TypeScript
Executable File
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { resolve } from 'path'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
index: resolve(__dirname, 'index.html'),
|
|
},
|
|
output: {
|
|
entryFileNames: 'assets/[name].js',
|
|
chunkFileNames: 'assets/[name].js',
|
|
assetFileNames: 'assets/[name].[ext]'
|
|
}
|
|
},
|
|
// Ensure CSS is extracted to a separate file
|
|
cssCodeSplit: false,
|
|
},
|
|
// Base path for Chrome extension
|
|
base: './',
|
|
|
|
}) |