1.0.7 • Published 6 years ago
simple-chrome-extension v1.0.7
Simple Chrome Extension

Quickly setup chrome extension seed project with webpack, react, jquery, babel, bootstrap and react-bootstrap.
Usage
With npx just run
npx simple-chrome-extension project-nameWithout npx
Install simple-chrome-extension globally using
npm i -g simple-chrome-extensionthen run
simple-chrome-extension project-namereplace project-name with the name of your chrome extension.
Runing Extension
- cd into your extension directory
- run
npm run watch - webpack will create
distdirectory inside extension directory with the bundled code and keep watching for code changes
Add extension to chrome
To test the extension
- Open chrome://extensions/ in the chrome browser
- Enable developer mode by button on the top right
- Click on load unpack button on top left and select the dist folder
It will load our chrome extension like this
Click on the icon next to the url section and it should render this popup

Project Structure
srcfolder contains everything other than boilerplate codeassetsfolder contains static assets like css, js files, images and iconsindex.htmlis the default_popup of chrome extensionApp.jscontains the root component, It renders the TodoList componentTodoList.jscontains the TodoList component with all the logic for adding and removing the task from the list
Demo
Click here to add TodoList extension to your chrome browser - Please don't forget to give it 5-star rating ;)

Acknowledgments
- Inspired from https://github.com/Kornil/simple-react-app