构建 Chrome 扩展!模板: React \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
构建 Chrome 扩展!模板: React \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
English · 简体中文 · 法语 · 韩语 · 印尼语 · 俄语 · 德语 · 日语 (by ChatGPT)
节点 >= 14.18.0
# use npm-create command, or use pnpm | yarn
λ npm create chrome-ext
# or use npx command
λ npx create-chrome-ext
# or use npm-init command
λ npm init chrome-ext您还可以通过额外的命令行选项直接指定项目名称和要使用的模板。例如,要创建一个 Vite + Svelte 项目,请运行:
# npm 6.x
λ npm create chrome-ext@latest my-crx-app --template svelte-js
# or npm 7+, extra double-dash is needed:
λ npm create chrome-ext@latest my-crx-app -- --template react-ts
# or yarn
λ yarn create chrome-ext my-crx-app --template vue-ts
# or pnpm
λ pnpm create chrome-ext my-crx-app --template vanilla-ts您还可以使用 crx cli 生成项目,运行:
λ npm install create-chrome-ext --global
# and then
λ crx my-crx-app
# or
λ crx my-crx-app --template preact-js
# or use create-chrome-exe (global env)
λ create-chrome-ext my-crx-app暂无开放 Issues,或尚未同步最近议题。