• Resolved rocketcis

    (@rocketcis)


    Hey.

    Is it possible with ReactPress to make a vite/react site? If this is not possible do you know a way how I can make that work?

    • This topic was modified 2 years, 6 months ago by rocketcis.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author rockiger

    (@rockiger)

    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/.

    Thread Starter rocketcis

    (@rocketcis)

    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 2 years, 6 months ago by rocketcis.
    • This reply was modified 2 years, 6 months ago by rocketcis.
    Thread Starter rocketcis

    (@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?

    Plugin Author rockiger

    (@rockiger)

    As I said, I don’t know Vite. What is not working? Maybe I can give some tips.

    Thread Starter rocketcis

    (@rocketcis)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Vite/react’ is closed to new replies.