Configuration

The tauri.conf.json is a generated file living in your Tauri application source directory (src-tauri).

It's composed of the following properties:

build

"build": {
  "distDir": "../dist",
  "devPath": "http://localhost:4000",
  "beforeDevCommand": "",
  "beforeBuildCommand": ""
}

distDir

Type: string

The path—either absolute or relative—to the production-ready webpage/webapp directory that will be bundled by Tauri.

devPath

Type: string

Can be a path - either absolute or relative - to a folder or a URL (like a live reload server).

beforeDevCommand

Type: string
Default: ""

A command to run before starting Tauri in dev mode.

beforeBuildCommand

Type: string
Default: ""

A command to run before starting Tauri in build mode.

ctx

"ctx" {
  "prod": false,
  "dev": false,
  "target": "",
  "debug": false,
  "targetName": "",
  "exitOnPanic": false,
}

prod

Type: boolean
Default:

dev

Type: boolean
Default:

target

Type: string
Default:

debug

Type: boolean
Default:

targetName

Type: string
Default:

exitOnPanic

Type: boolean
Default:

tauri

"tauri": {
  "embeddedServer": {
    "active": true
  },
  "bundle": {
    "active": true,
    "identifier": "com.tauri.dev",
    "icon": ["icons/32x32.png", "icons/128x128.png", "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico"],
    "resources": [],
    "externalBin": [],
    "copyright": "",
    "category": "DeveloperTool",
    "shortDescription": "",
    "longDescription": "",
    "deb": {
      "depends": []
    },
    "osx": {
      "frameworks": [],
      "minimumSystemVersion": ""
    },
    "exceptionDomain": ""
  },
  "whitelist": {
    "all": true
  },
  "window": {
    "title": "Tauri App",
    "width": 800,
    "height": 600,
    "resizable": true,
    "fullscreen": false
  },
  "security": {
    "csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'"
  },
  "edge": {
    "active": true
  },
  "inliner": {
    "active": true
  }
}

embeddedServer

Type: object

A property to determine if Tauri should embed a webserver to run your application.
Set it to { "active": false } if you plan to serve your application statically.

active

Type: boolean

bundle

Type: object

active

Type: boolean

identifier

Type: string

icon

Type: string[]

A list of icons that should be used by the bundler.

resources

Type: []

externalBin

Type: string[]

A list of paths—either absolute or relative—to binaries that the bundler should embed.

copyright

Type: string

category

Type: string

shortDescription

Type: string

longDescription

Type: string

deb

Type: string

osx

Type: string

exceptionDomain

Type: string