Add support for using vite from the root of the project
Closes #3511730 Copy of !22 (closed) with tests. Pushed separately just in case, to not be PITA in !22 (closed) in case tests are WIP for it
Closes #3511730 Copy of !22 (closed) with tests. Pushed separately just in case, to not be PITA in !22 (closed) in case tests are WIP for it