Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite configuration page could be a bit clearer #3179

Open
aaronshenhao opened this issue Feb 23, 2025 · 0 comments
Open

Vite configuration page could be a bit clearer #3179

aaronshenhao opened this issue Feb 23, 2025 · 0 comments

Comments

@aaronshenhao
Copy link

aaronshenhao commented Feb 23, 2025

Page of interest: https://v2.tauri.app/start/frontend/vite/

Here's a list of things that could make it more helpful to beginners:

  • Clarify where tauri.conf.json is located (not mentioned beforehand).
  • Clarify what dist/ does. Shouldn't it be ../dist, which is already present in the auto-generated code from npm create tauri-app@latest?
  • The package.json file in the doc differs from the auto-generated code (React + Typescript).
  • Same goes for the vite.config.js. Are we meant to use the auto-generated code or the one in the docs? The one in the docs do not have TypeScript support or HMR, but the generated code has less support for debugging. Also, it might be useful to explain that the environment variables are set automatically by Tauri.
  • Additional instructions for Docker users: if TAURI_DEV_HOST is not set, set host: true so it can listen to connections from outside the container, otherwise npm run dev won't work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant