fix: tailwind v4 plugin order + opcache revalidate_freq=0 + npm scripts

- vite.config.js: tailwindcss() vor laravel() Plugin-Reihenfolge (Tailwind v4)
- vite.config.js: refresh-Globs für Livewire + Blade + Lang + CSS
- docker/app/php.ini: opcache.revalidate_freq=0, jit=tracing, memory 512M
- docker/app/Dockerfile: COPY php.ini zu zz-app.ini
- package.json: build:watch + preview + lint scripts ergänzt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
boban 2026-05-16 10:26:15 +02:00
parent e551fb62ac
commit 5ac6a198b4
4 changed files with 34 additions and 3 deletions

View File

@ -51,6 +51,8 @@ RUN mkdir -p storage/logs storage/framework/cache storage/framework/sessions \
&& chown -R www-data:www-data storage bootstrap/cache \
&& chmod -R 775 storage bootstrap/cache
COPY docker/app/php.ini /usr/local/etc/php/conf.d/zz-app.ini
USER www-data
EXPOSE 80

20
docker/app/php.ini Normal file
View File

@ -0,0 +1,20 @@
[opcache]
opcache.enable=1
opcache.enable_cli=0
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.validate_timestamps=1
opcache.revalidate_freq=0
opcache.jit=tracing
opcache.jit_buffer_size=128M
[Date]
date.timezone=Europe/Berlin
[PHP]
memory_limit=512M
post_max_size=50M
upload_max_filesize=50M
max_execution_time=60
display_errors=On
error_reporting=E_ALL

View File

@ -3,8 +3,11 @@
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"dev": "vite"
"build:watch": "vite build --watch",
"preview": "vite preview",
"lint": "echo 'no lint configured'"
},
"devDependencies": {
"@tailwindcss/vite": "^4.3.0",

View File

@ -4,11 +4,17 @@ import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [
tailwindcss(),
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
refresh: [
'resources/views/**/*.blade.php',
'resources/css/**/*.css',
'resources/js/**/*.js',
'app/Livewire/**/*.php',
'lang/**/*.php',
],
}),
tailwindcss(),
],
server: {
host: '0.0.0.0',