bump: 4.0 - new react frontend

This commit is contained in:
2026-03-15 17:27:16 +01:00
parent 6438deaa4e
commit becc4f9445
24 changed files with 722 additions and 262 deletions

33
vite.config.js Normal file
View File

@@ -0,0 +1,33 @@
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',
});