Skip to content

Turn a basic create-react-app application into a chrome extension with one line.

Notifications You must be signed in to change notification settings

JakeDluhy/create-react-app-chrome-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create React App Chrome Extension

Turn your shiny new create-react-app into a chrome extension.

Installation

The preferred method is using npx, which ships with npm 5.2+. In your new react app directory, run npx create-react-app-chrome-extension. This will add all of the relevant files.

If you don't have npx, you can run

yarn add -D create-react-app-chrome-extension
./node_modules/.bin/create-react-app-chrome-extension
yarn remove create-react-app-chrome-extension

Adding to Chrome

Go to chrome://extensions, and on the upper right toggle developer mode on. Run yarn build to create your bundle, and then drop the entire build folder onto the extensions page. And you're done!

Options

  • --public=<dirname> - the public directory where to place background.js, entry.js, and where the manifest.json is located.

Issues

Feel free to open issues or future features you would like to see added! Even better is an issue submitted with a PR. See the Contributing section for more details.

Contributing

I would love more help on future features. Check out CONTRIBUTING.md for more information!

Acknowledgements

Many thanks to the authors and maintainers of create-react-app for making such a useful tool.

License

MIT

About

Turn a basic create-react-app application into a chrome extension with one line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published