fix: register ViteBundle, add config, share vendor volume with node, add vite-plugin-symfony
- Add PentatrionViteBundle to bundles.php (Flex recipe didn't auto-register) - Create pentatrion_vite.yaml config - Share vendor named volume with node container (needed for file: npm deps) - Add vite-plugin-symfony to package.json devDependencies Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,4 +14,5 @@ return [
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||
Symfony\UX\React\ReactBundle::class => ['all' => true],
|
||||
Pentatrion\ViteBundle\PentatrionViteBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
5
config/packages/pentatrion_vite.yaml
Normal file
5
config/packages/pentatrion_vite.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
pentatrion_vite:
|
||||
default_build: app
|
||||
builds:
|
||||
app:
|
||||
build_directory: build
|
||||
@@ -23,9 +23,12 @@ services:
|
||||
target: dev
|
||||
volumes:
|
||||
- .:/app
|
||||
- vendor:/app/vendor
|
||||
- node_modules:/app/node_modules
|
||||
ports:
|
||||
- "5173:5173"
|
||||
depends_on:
|
||||
- app
|
||||
|
||||
volumes:
|
||||
vendor:
|
||||
|
||||
4402
package-lock.json
generated
Normal file
4402
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -16,6 +16,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-react": "^4.3",
|
||||
"vite": "^6.0"
|
||||
"vite": "^6.0",
|
||||
"vite-plugin-symfony": "^8.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user