예시

이 페이지는 addfox 저장소의 확장 예시를 나열하며, 각 예시는 독립적인 디렉토리로 package.jsonaddfox.config.ts를 포함합니다. 저장소 루트에서 pnpm / npm / yarn / bun으로 의존성을 설치한 후, 해당 예시 디렉토리에서 dev 또는 build를 실행하여 실행하거나 빌드할 수 있습니다.

예시설명저장소 링크
addfox-with-vueVue 3 템플릿: popup, options, content, background, 간단한 메시지 통신 포함examples/addfox-with-vue
addfox-with-reactReact 템플릿: popup, options, content, background, 간단한 메시지 통신 포함examples/addfox-with-react
addfox-with-preactPreact 템플릿: popup, options, content, background, 간단한 메시지 통신 포함examples/addfox-with-preact
addfox-with-svelteSvelte 템플릿: popup, options, content, background, 간단한 메시지 통신 포함examples/addfox-with-svelte
addfox-with-solidSolid 템플릿: popup, options, content, background, 간단한 메시지 통신 포함examples/addfox-with-solid
addfox-with-react-shadcnReact + shadcn/ui: popup, options, content, background, sidepanel 다섯 Entry, Tailwind + 컴포넌트 라이브러리examples/addfox-with-react-shadcn
addfox-with-devtools순수 TypeScript: background + devtools_page만, React/Vue 없음, DevTools 확장 시연examples/addfox-with-devtools
addfox-with-content-uiContent UI 예시: 페이지에 확장 UI 마운트 시연examples/addfox-with-content-ui
addfox-with-content-ui-reactReact 버전 Content UI 예시examples/addfox-with-content-ui-react
addfox-with-tailwindcssTailwind CSS 통합 예시examples/addfox-with-tailwindcss
addfox-with-unoUnoCSS 통합 예시examples/addfox-with-uno
addfox-with-vue-tsxVue + TSX 예시examples/addfox-with-vue-tsx
addfox-with-firefoxFirefox 대상 빌드 및 실행 예시examples/addfox-with-firefox
addfox-with-mv2Manifest V2 호환 예시 (마이그레이션/비교용)examples/addfox-with-mv2
addfox-with-manifest-entriesmanifest 필드를 통해 Entry를 선언하는 예시examples/addfox-with-manifest-entries
addfox-with-react-entry-falseentry: false 시나리오 (rsbuild가 Entry를 직접 관리)의 React 예시examples/addfox-with-react-entry-false
addfox-with-single-file단일 파일/최소 구조 예시examples/addfox-with-single-file
addfox-with-sandbox샌드박스 페이지(sandbox) 예시examples/addfox-with-sandbox
addfox-with-newtab-override브라우저 새 탭 페이지 덮어쓰기 예시examples/addfox-with-newtab-override
addfox-with-history-override기록 페이지 덮어쓰기 예시examples/addfox-with-history-override
addfox-with-bookmarks-override북마크 페이지 덮어쓰기 예시examples/addfox-with-bookmarks-override
addfox-with-rstestRstest 단위 테스트 통합 예시examples/addfox-with-rstest
addfox-with-rstest-e2eRstest + E2E 테스트 예시examples/addfox-with-rstest-e2e
addfox-with-env-vars환경 변수 주입 및 범위 예시 (ADDFOX_PUBLIC_ 및 프라이빗 변수 포함)examples/addfox-with-env-vars

실행 방식

addfox 저장소 루트에서 설치를 실행한 후, 임의의 예시 디렉토리로 이동:

pnpm
npm
yarn
bun
pnpm install
cd examples/addfox-with-vue   # 또는 다른 예시
pnpm dev                   # 개발 모드
pnpm build                 # 빌드

빌드 결과물은 .addfox/extension(또는 해당 예시의 outputRoot/outDir 구성)에 있으며, 브라우저에서 해당 디렉토리를 로드하면 됩니다. dev를 사용할 때 프레임워크가 브라우저를 자동으로 열고 확장을 로드할 수 있습니다.