web-extension
v1.0.26
Published
Create-react-app scripts for web extension
Downloads
15
Maintainers
Readme
react-scripts for chrome extension
How beautiful is create-react-app, just type the magic command, and you will get pre-structured and pre-configured app for your quick start. But what to do, when you want to develop chrome extension with react.
Here is it!!!
Just type the following command in your console and press enter.
npx create-react-app my-chrome-extension --scripts-version web-extension --template web-extension-typescript
After we get a brand new project with the following folder structure,
app
├── src
│ ├── background
│ │ └── index.ts
│ ├── contentScript
│ │ └── index.ts
│ ├── options
│ │ ├── index.tsx
│ │ ├── Options.css
│ │ └── Options.tsx
│ ├── popup
│ │ ├── App.css
│ │ ├── App.tsx
│ │ ├── index.css
│ │ └── index.tsx
│ └── react-app-env.d.ts
├── public
│ ├── assets
│ │ ├── icon-16.png
│ │ ├── icon-48.png
│ │ ├── icon-128.png
│ ├── manifest.json
│ ├── options.html
│ └── popup.html
├── .gitignore
├── package-lock.json
├── package.json
└── tsconfig.json
This package includes scripts and configuration used by Create React App. Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.