A react boilerplate for building chrome extension.
Package | Version |
---|---|
Webpack | 5.x |
TypeScript | 4.x |
ESLint | 8.x |
PostCSS | 8.x |
Less | 4.x |
Node SASS | 8.x |
Stylelint | 14.x |
- Clone this repo.
- Change project properties.
- Run
npm install
. - Start by
npm start
. - Build by
npm run build
.
For WSL users, here's a trick you can develop in a linux sub system with hot reload, and preview in windows host system Chrome
application:
-
In WSL
npm start -- --distPath="/mnt/d/react-chrome-extension-boilerplate-dist"
-
In chrome: Load unpack extension from
D:/react-chrome-extension-boilerplate-dist