Coder Social home page Coder Social logo

chrome-extension-react-starter-kit's Introduction

Chrome extension react starter kit

This repo is a starter kit for chrome extension using React tech stack. It includes demo code for popup, content script and backgroud pages of the demo extension.

The content script will display a fixed top header in red background color for all webpages.

Pros

  1. Automatically chrome extension auto reload when code changes
  2. Automatically web page refresh for current tab (For content script development)
  3. Write code with latest frontend techs, code will be transpiled with webpack
  4. Sourcemap enabled for easy debugging
  5. Leverage React-jss to avoid style confliction between webpage and extension
  6. Eslint enabled

Get Started

  1. $ yarn install
  2. $ yarn start to start webpack dev server
  3. Load unpacked extension: Open chrome browser -> chrome://extensions -> Load unpacked
  4. Change code in ./src/background, ./src/content-script, ./src/popup based on your business logic
  5. The webpack dev server is configable in webpack.{env}.config.js
  6. $ yarn build to build production code

License

MIT

chrome-extension-react-starter-kit's People

Contributors

shuowu avatar swu-architech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.