Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m0s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m51s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 12m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m27s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 16m0s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 15m20s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 56s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
- Erscheinungsbild: große Fotos (Anmeldung, Titelbild) beim Speichern als WebP ≤ 2400 px; Migration verkleinert vorhandene einmal - Vite: Grundgerüst und UI-Bausteine als gemeinsame Dateien (Startseite 34 statt 58 Skripte) - Plugin-Oberflächen: Kopie nach public/ erneuert sich bei neuem Build (Fingerabdruck von dist/inhaus.json), auch ohne neue Version Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
51 lines
2 KiB
JavaScript
51 lines
2 KiB
JavaScript
import { fileURLToPath, URL } from 'node:url';
|
||
import { defineConfig } from 'vite';
|
||
import laravel from 'laravel-vite-plugin';
|
||
import tailwindcss from '@tailwindcss/vite';
|
||
import vue from '@vitejs/plugin-vue';
|
||
|
||
// Der Build läuft nur beim Entwickeln; public/build/ wird mitversioniert,
|
||
// weil auf dem Server des Kunden kein Node zur Verfügung steht.
|
||
export default defineConfig({
|
||
plugins: [
|
||
laravel({
|
||
input: ['resources/js/app.js', 'resources/css/filament/admin/theme.css'],
|
||
refresh: true,
|
||
}),
|
||
tailwindcss(),
|
||
vue({
|
||
template: {
|
||
transformAssetUrls: {
|
||
base: null,
|
||
includeAbsolute: false,
|
||
},
|
||
},
|
||
}),
|
||
],
|
||
resolve: {
|
||
alias: {
|
||
'@': fileURLToPath(new URL('./resources/js', import.meta.url)),
|
||
'@plugins': fileURLToPath(new URL('./plugins-core', import.meta.url)),
|
||
},
|
||
},
|
||
build: {
|
||
rolldownOptions: {
|
||
output: {
|
||
// Weniger, dafür etwas größere Dateien: Grundgerüst und UI-Bausteine braucht jede
|
||
// Seite – einzeln waren das 50+ Anfragen. Große, seltene Teile (Editor, PDF,
|
||
// Symbolsatz) bleiben eigene Dateien und laden nur bei Bedarf.
|
||
codeSplitting: {
|
||
groups: [
|
||
{ name: 'framework', test: /node_modules[\\/](@vue|vue|@inertiajs|axios|es-toolkit|laravel-precognition|qs|side-channel)[\\/]/, priority: 20 },
|
||
{ name: 'ui', test: /node_modules[\\/](reka-ui|@floating-ui|@vueuse|@internationalized|@swc|aria-hidden|defu|ohash|vue-sonner|class-variance-authority|clsx|tailwind-merge)[\\/]|resources[\\/]js[\\/]components[\\/]ui[\\/]/, priority: 10 },
|
||
],
|
||
},
|
||
},
|
||
},
|
||
},
|
||
server: {
|
||
watch: {
|
||
ignored: ['**/storage/framework/views/**'],
|
||
},
|
||
},
|
||
});
|