phpsoftbox / vite
Vite integration for the PhpSoftBox framework
dev-master
2026-03-05 11:42 UTC
Requires
- php: ^8.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.93
- phpsoftbox/cli-app: dev-master
- phpsoftbox/cs-fixer: ^1.1.0
- phpunit/phpunit: ^11.2
This package is auto-updated.
Last update: 2026-03-05 11:42:30 UTC
README
Минимальный адаптер Vite для генерации тегов скриптов и стилей.
Использование
$vite = new \PhpSoftBox\Vite\Vite( manifestPath: __DIR__ . '/public/build/manifest.json', hotFile: __DIR__ . '/public/hot', devServer: 'https://vite.domain.local', environment: 'dev', buildBase: '/build', ); echo $vite->tags('resources/js/app.tsx');
Что умеет
- dev‑сервер: подключает
@vite/clientи entrypoint. - build‑режим: читает
manifest.jsonи подключает JS/CSS.