1.2.3 • Published 10 months ago

chrome-extension-maker v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

📦️ 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 and service_worker tags to support Firefox and Chromium development
      • If you are solely testing for Chromium, browser_specific_settings and background.scripts can be removed from the manifest.json as they exist to maintain Firefox compatibility
  • 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 in web-ext-config.mjs to the path of your Chrome profile directory which can be found at chrome://version/ in the Profile 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 run npm run dev and firefox-config.js being automatically loaded for Firefox when you run npm 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 the dist folder for Chromium

npm run build:firefox

  • Runs web-ext build and builds the extension for production to the dist 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 for web-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.

1.2.3

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago