• Hello, what is the proper way to update a vite app? Normally with react I just replace the build folder, however when I replace the dist folder for a vite app it does not work as expected. Do I need to delete and recreate a new application every time I want to edit a vite app?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rockiger

    (@rockiger)

    You re-build the app. I don’t see why this should be any different from an app created with CRA.

    Thread Starter jtesting

    (@jtesting)

    Maybe I should provide some additional context.

    My current folder structure is reactpress > apps > demo > build.

    My current process is to build the react app and replace the existing build folder which updates my application.

    I am interested in converting over to vite.

    reactpress > apps > vite_map_demo > dist

    If I replace the dist folder the changes do not go into effect.

    Does the process change due to how a vite react app is configured?

    Plugin Author rockiger

    (@rockiger)

    I looked into it. It seems you need to delete the dist folder. Otherwise, it can happen that the wrong distribution file from the Vite build is read.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Easiest way to update Vite React App?’ is closed to new replies.