web-extension
TypeScript icon, indicating that this package has built-in type declarations

1.0.26 • Public • Published

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:

Info: This version corresponding to react-scripts v5.0.1

Package Sidebar

Install

npm i web-extension

Weekly Downloads

0

Version

1.0.26

License

MIT

Unpacked Size

114 kB

Total Files

24

Last publish

Collaborators

  • nsarg1