JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q43824F
  • License MIT license

A tool to (re)generate Chrome extension from React & Webpack project

Package Exports

  • create-react-ext
  • create-react-ext/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (create-react-ext) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

About package

A tool to (re)generate Chrome extension from React & Webpack project. So any changes in your React code will automatically (re)generate extension in ext folder no matter how many changes you made (see demo below)

icon

Version npm

Demo

ezgif-2-a62f1dd185

Usage

  1. Create React project (using create-react-app for example)
  2. Install packages: npm i create-react-ext @types/chrome
  3. Start project. Make sure localhost:3000 is available
  4. Generate extension: cd node_modules/create-react-ext && npm start (it'll add ext folder)
  5. Load the extension in Chrome from ext folder
  6. Now you can make changes in React code or in ext/background.js, ext/manifest.json. Changes will regenerate the extension in ext and auto-reload using chrome.runtime.reload or window.location.reload if extension is opened (see demo above)

License

MIT License