Chrome Extension Starter Kit, for TypeScript and React.
Forked from chibat's original starter kit, this kit essentially adds React support for popup and options windows.
Plus a bunch of other improvements like source mapping and a better build setup!
- TypeScript
- React
- Webpack
- TSLint
- Moment.js
- jQuery
src
: TypeScript source filespublic
: Chrome Extension manifest, icon, HTMLsdist
: This is where the Chrome Extension will be builtdist/build
: Generated JavaScript bundles with source mapping, and assets
Runs webpack in watch mode, generates bundles with source mapping
npm start
Runs webpack and generates the minified bundles
npm run build
- Build the extension
- Open Chrome and go to
chrome://extensions
- Click
Load unpacked extension...
- Load the
dist
directory
- Click on the icon of your extension opens the popup window
- Right click and open DevTools
- In DevTools you can press Ctrl+R to reload
- Because source maps are generated, you can easily debug your ts code in DevTools