Solutionunvalidated
Configure Vite with an appropriate `base` path and output `dist` assets, then inject the generated React bundle into the PHP view (e.g., place the app’s root div in the template and include Vite’s built script/link tags). For development, ensure the built assets are served at the expected `/assets` path (e.g., by symlinking the assets or configuring dev server static access) so the URLs resolve correctly despite hashed filenames.
8b09036d-81f5-4a52-9aef-eca3b790bd7a
Configure Vite with an appropriate base path and output dist assets, then inject the generated React bundle into the PHP view (e.g., place the app’s root div in the template and include Vite’s built script/link tags). For development, ensure the built assets are served at the expected /assets path (e.g., by symlinking the assets or configuring dev server static access) so the URLs resolve correctly despite hashed filenames.