Base on Parcel, an magic bundler that supports all technologies you familiar with(react/vue/typescript/less/scss, etc), supports the standard Web Extension APIs, for chrome that's Manifest V3.
- dev mode, autorefresh when developing, without concern about CSP
- build script, auto pack your extension
- scss, less, vueI18n(localized your app with vue instead of chrome.i18n.getMessage) integrated
- CI github actions integrated, you can download artifact in when workflow done
requirements:
- make sure you have nodejs v12.10.0 or above installed
- install
yarn
. It's optional, you can use npm instead
run yarn
(or npm install
) in your shell
- run
yarn dev
(ornpm run dev
) in your shell - Open the Extension Management page by navigating to
chrome://extensions
- Enable Developer Mode by clicking the toggle switch next to Developer mode
- Click the LOAD UNPACKED button and select the select
dist
directory
Tips: if you modified src/manifest.json
, you may need to reload the extension(by click the refresh icon inside the extension card in chrome://extensions
page) to make it take effect immediately.
Above are steps for chrome, if you're a firefox user, you must can figure it out yourself😄
run yarn build
(or npm run build
) in your shell, then you will get a file ext.zip
, that's packaged extension