Skip to content
프로젝트

5tigerjelly/chrome-extension-react-template

GitHub에서 보기

소개

Ready to use Chrome extension template with React Typescript + Vite

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

React Chrome Extension Template

This is a template for creating a Chrome extension using React and Vite with TypeScript.

Getting Started

Prerequisites

Make sure you have Node.js (version 18+ or 20+) installed on your machine.

Setup

  1. Clone or fork the repository :

    # To clone
    git clone https://github.com/5tigerjelly/chrome-extension-react-template
    cd chrome-extension-react-template
    
  2. Install the dependencies:

    npm install
    

🏗️ Development

To start the development server:

npm run dev

This will start the Vite development server and open your default browser.

📦 Build

To create a production build:

npm run build

This will generate the build files in the build directory.

📂 Load Extension in Chrome

  1. Open Chrome and navigate to chrome://extensions/.
  2. Enable "Developer mode" using the toggle switch in the top right corner.
  3. Click "Load unpacked" and select the build directory.

Your React app should now be loaded as a Chrome extension!

🗂️ Project Structure

  • public/: Contains static files and the manifest.json.
  • src/: Contains the React app source code.
  • vite.config.ts: Vite configuration file.
  • tsconfig.json: TypeScript configuration file.
  • package.json: Contains the project dependencies and scripts.

License

This project is licensed under the MIT License.

관련 프로젝트 살펴보기

불러오는 중…