From 5ac6a198b42c7291437f65aba8a59fc3a976458e Mon Sep 17 00:00:00 2001 From: boban Date: Sat, 16 May 2026 10:26:15 +0200 Subject: [PATCH] fix: tailwind v4 plugin order + opcache revalidate_freq=0 + npm scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- docker/app/Dockerfile | 2 ++ docker/app/php.ini | 20 ++++++++++++++++++++ package.json | 5 ++++- vite.config.js | 10 ++++++++-- 4 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 docker/app/php.ini diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile index 45bdd6e..31f841d 100644 --- a/docker/app/Dockerfile +++ b/docker/app/Dockerfile @@ -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 diff --git a/docker/app/php.ini b/docker/app/php.ini new file mode 100644 index 0000000..cfde6ca --- /dev/null +++ b/docker/app/php.ini @@ -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 diff --git a/package.json b/package.json index 35297e4..10e9c16 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/vite.config.js b/vite.config.js index 8b34acf..9077b01 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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',