Closed fgeierst closed 2 years ago
Hey, thanks for starting this! Just as optional side notes, don't know if helpful:
Maybe these third party packages could be a good reference since they use a PHP-centric approach with .php
-config-files:
(The new official https://github.com/laravel/vite-plugin took another approach to tackle this by using a more NodeJS-centric approach. But this led to lengthy discussions regarding DDEV usage https://github.com/laravel/vite-plugin/issues/83. Personally I wouldn't recommend this approach ;-)))
Unfortunately I'm not a typo3 backend pro, but I'm happy to participate in testing! ✅ Subscribed.
TODO: Add vite scripts only in development mode. In production mode read the hashed js and css file paths from manifest.json See https://vitejs.dev/guide/backend-integration.html, Section 3.
https://vitejs.dev/guide/backend-integration.html