Turn your shiny new create-react-app into a chrome extension.
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-extensionGo 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!
--public=<dirname>- the public directory where to placebackground.js,entry.js, and where themanifest.jsonis located.
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.
I would love more help on future features. Check out CONTRIBUTING.md for more information!
Many thanks to the authors and maintainers of create-react-app for making such a useful tool.
MIT