棕地模式
这是默认模式。
¥This is the default pattern.
这是使用 Tauri 的最简单、最直接的模式,因为它试图尽可能与现有的前端项目兼容。简而言之,它试图不需要现有 Web 前端在浏览器中可能使用的任何额外功能。并非所有在现有浏览器应用中运行的功能都可以开箱即用。
¥This is the simplest and most straightforward pattern to use Tauri with, because it tries to be as compatible as possible with existing frontend projects. In short, it tries to require nothing additional to what an existing web frontend might use inside a browser. Not everything that works in existing browser applications will work out-of-the-box.
如果你不熟悉 Brownfield 软件开发,Brownfield Wikipedia 文章 提供了一个很好的总结。对于 Tauri,现有软件是当前浏览器支持和行为,而不是旧系统。
¥If you are unfamiliar with Brownfield software development in general, the Brownfield Wikipedia article provides a nice summary. For Tauri, the existing software is current browser support and behavior, instead of legacy systems.
配置
¥Configuration
由于 Brownfield 模式是默认模式,因此不需要设置配置选项。要明确设置它,你可以在 tauri.conf.json
配置文件中使用 tauri > pattern
对象。
¥Because the Brownfield pattern is the default pattern, it doesn’t require a configuration option to be set. To explicitly set
it, you can use the tauri > pattern
object in the tauri.conf.json
configuration file.
{ "tauri": { "pattern": { "use": "brownfield" } }}
棕地模式没有其他配置选项。
¥There are no additional configuration options for the brownfield pattern.
Tauri 中文网 - 粤ICP备13048890号