Is there any way to only build frontend of Tauri, but without backend?

50 views Asked by At

I build a tauri app, but I have only used typescript to implement it, have not used the rust backend but the application still built a rust server, I think it will expense cpu and memory cost,is there any way to only build frontend of tauri, but without backend ?

1

There are 1 answers

0
DeveloperMindset.com On

To build only the frontend part you'd want to run npm run dev and it will execute the underline command to run your frontend which most likely will call vite command.

Thought it won't compile the binary application itself, since it depends on getting the rust backend compiled.

If you want to run just the frontend part with minimal backend, after the first rust compilation everything is cached, and it is still smaller than Electron and other similar solutions.