-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
feat: hot reload dev for static files #2173
Comments
Hey @SOVLOOKUP ! |
I use Live server in VSCode to and configure {
"build": {
"devPath": "https://localhost:5500"
}
} and I don't think |
Yeah Tauri would probably just leverage one of the existing dev servers libraries and expose it to the users. |
More people requesting this feature :) |
I use |
@arnaudambro Unless manually disabled, With the Live server VSCode extension, a JavaScript full-page refresh is triggered. Have your tried visiting http://localhost:5500 in your browser to check if reloading is working there? |
actually it works good now ! I tried a few times before sending this message, not working, but today everything works like a charm... thanks ! |
I am working on vscode, and live server is running, but the window can't move by drag. btw, the titlebar has "data-tauri-drag-region", it works well while 'devPath: "../dist"'. |
1 similar comment
I am working on vscode, and live server is running, but the window can't move by drag. btw, the titlebar has "data-tauri-drag-region", it works well while 'devPath: "../dist"'. |
Just wanted to add, I am using sveltekit for my web framework. It uses Vite to package up the JS and Vite also has HMR which seems to work as long as you point tauri.conf.json at the right devPath as was mentioned for live server. |
I also think there should be an out-of-the-box solution that doesn't require additional setup from the user - at least for vanilla html documents. Perhaps the VS Code extension can provide some interoperability? |
This is an incredibly painful workflow. I'm trying to use vanilla js with the new import maps feature, and the build times are incredibly slow since I have to touch build.rs every time. |
When I modify the front static file, I hope
tauri dev
can automatically hot reload.The text was updated successfully, but these errors were encountered: