No, at the moment Vite does not work. I will add other scaffolding like Vite in later releases.
If you want to add Vite manually you can use this tutorial: https://medium.com/swlh/wordpress-create-react-app-integration-30b41657b79e
But you need to change the build structure to fit Vite. For example vite uses a dist/ directory instead of build/.
In this tutorial, they refer to a asset.manifest.json in the build folder. Vite does not have that in the dist. Do you know which file I need for that?
EDIT: I had to enable it in the vite.config.js file 🙂
-
This reply was modified 3 years, 8 months ago by
rocketcis.
-
This reply was modified 3 years, 8 months ago by
rocketcis.
I followed the tutorial, but it’s sadly not working… Is there a way you can help me with this? Or are you bussy at the moment?
As I said, I don’t know Vite. What is not working? Maybe I can give some tips.
The react app is not vissible in the dashboard.
I’m now following along with the create/react to test if it works. That is working only the problem there is that method 2 don’t work for me. I cloned his 2 branch to set the react app in a footer on the main site. But that is not working