Files
us-2fa-autofill/vite.config.js
2026-03-15 17:27:16 +01:00

34 lines
659 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
input: [
resolve(__dirname, 'index.html'),
resolve(__dirname, 'src/content.js')
],
output: {
entryFileNames: (chunkInfo) => {
if (chunkInfo.name === 'content') {
return 'scripts/content.js';
}
return 'assets/[name]-[hash].js';
},
},
},
},
server: {
port: 3000,
},
resolve: {
alias: {
'@/': '/src/',
},
},
publicDir: 'public',
});