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
parent
e551fb62ac
commit
5ac6a198b4
|
|
@ -51,6 +51,8 @@ RUN mkdir -p storage/logs storage/framework/cache storage/framework/sessions \
|
||||||
&& chown -R www-data:www-data storage bootstrap/cache \
|
&& chown -R www-data:www-data storage bootstrap/cache \
|
||||||
&& chmod -R 775 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
|
USER www-data
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -3,8 +3,11 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"dev": "vite"
|
"build:watch": "vite build --watch",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"lint": "echo 'no lint configured'"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/vite": "^4.3.0",
|
"@tailwindcss/vite": "^4.3.0",
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,17 @@ import tailwindcss from '@tailwindcss/vite';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
|
tailwindcss(),
|
||||||
laravel({
|
laravel({
|
||||||
input: ['resources/css/app.css', 'resources/js/app.js'],
|
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: {
|
server: {
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue