
创建项目
你将得到什么
编译时 UI,配合单文件.svelte 组件和极小的运行时占用。对于每一 KB 都重要的 content script 与 popup 来说,这是一个不错的选择。
模板已包含在扩展上下文中以 HMR 友好的方式编写 Svelte 所需的构建配置。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🎉 Extension.js v3.0.0 is here — faster builds, Firefox MV3, and first-class TypeScript.
脚手架生成一个 Svelte 浏览器扩展,包含单文件组件、编译时运行时以及现成的 popup、options 与 content script 接线。

npx extension@latest create my-extension --template=svelte
.svelte 组件和极小的运行时占用。对于每一 KB 都重要的 content script 与 popup 来说,这是一个不错的选择。
模板已包含在扩展上下文中以 HMR 友好的方式编写 Svelte 所需的构建配置。
此页面对您有帮助吗?
