Modes
There are two basic modes of tauri: with or without a localhost server.
Localhost Server
Shipped by default, this is the easiest way to get up and running. It provides your app with a localhost server that uses an ephemeral port (i.e. a port that changes on every run, based on what is available on the device).
In your src-tauri/tauri.conf.json:
No Server
A more advanced and secure configuration, and currently only available for webpack users, is the no-server. The main reason for its complexity is that tauri needs to rebuild your code by removing dynamic imports.
In your src-tauri/tauri.conf.json:
webpack
If you are handcrafting your own webpack, you can do this:
webpack.config.js
And then in the scripts of your package.json:
The webpack plugin can also be used with chainWebpack:
webpack chain
Next Step:
Application identity