Skip to main content
Version: 1.0.0

Tauri

Create a Tauri project based on Farm.

Farm provides two approaches to support creating Tauri projects:

  • Use the create-farm scaffold to create a scaffold project
  • You can manually create a Tauri project following the current documentation

Creating a Tauri Project

npm
yarn
pnpm
bun
npm create farm@latest

Select Tauri template in Select Framework

  1. project name

  2. choose sub template

In your terminal, cd into the new Tauri project folder.

Update the file with the following content:

import { defineConfig } from '@farmfe/core';

export default defineConfig({
plugins: ['@farmfe/plugin-react'],
server: {
port: 1420
}
});

then run pnpm tauri dev

For more example details: React Example

Extremely Fast Web Build Tool Written in Rust

Copyright © 2024 Farm Community. Built with Docusaurus.