chrome-extension-maker
v1.2.3
Published
Command line utility to quickly create and develop Chrome/Firefox/Web extensions.
Downloads
461
Maintainers
Readme
📦️ Chrome Extension Boilerplate (Manifest V3)
⚡️ Quick Start in 3 Steps
npx chrome-extension-maker <app-directory>
cd <app-directory>
npm run dev
🚨 Key Features
- Uses Manifest Version 3
- Faster and easier development with
web-ext
- Performant builds with
web-ext
without unwanted files - Development with both Firefox and Chromium in temporary profiles
📝 Notes:
offline_enabled
, a key valid in Chromium, extensions does not work in Firefox- Service Workers are supported in Chromium but not Firefox
- The default Manifest may be slightly incorrect because it uses both
script
andservice_worker
tags to support Firefox and Chromium development- If you are solely testing for Chromium,
browser_specific_settings
andbackground.scripts
can be removed from themanifest.json
as they exist to maintain Firefox compatibility
- If you are solely testing for Chromium,
- The default Manifest may be slightly incorrect because it uses both
- The favicon images were generated using favicon.io
- In order to load a custom Chrome profile, to maintain flags, for example, set the
chromiumProfile
variable inweb-ext-config.mjs
to the path of your Chrome profile directory which can be found atchrome://version/
in theProfile Path
field or in these Chromium Docs - There are two different configuration files with
web-ext-config.mjs
being automatically loaded for Chromium when you runnpm run dev
andfirefox-config.js
being automatically loaded for Firefox when you runnpm run dev:firefox
📄 Command Reference
npm run dev
- Runs
web-ext run
and tests in Chromium
npm run dev:firefox
- Runs
TMPDIR=~/tmp-dir/ web-ext run
and tests in Firefox
npm run build
- Runs
web-ext build
and builds the extension for production to thedist
folder for Chromium
npm run build:firefox
- Runs
web-ext build
and builds the extension for production to thedist
folder for Firefox
npm run lint
- Runs
web-ext lint
to check for errors in the manifest and lint extension
npm run docs
- Runs
web-ext docs
to open relevant documentation forweb-ext
👔 License
This project is licensed under the MIT License.
📚️ Credits
This is a fork of the archived chrome-extension-boilerplate with changes that incorporate web-ext to make development easier and faster.