Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

philheller/web_extension_environment

Repository files navigation

⚠️ Archived in favor of HMR enabled environment: consider using this template instead.

Extension development

What is this environment for? What are the tasks the environment automates? How to use?

What is this environment for?

This environment is used to automate a bunch of tasks in order to bundle an extension. It is compatible with:

  • chromium based browsers (blink)
  • Firefox as well with a little addition in the manifest.json (gecko)

This environment is suitable for a small scale project and is not good for:

  • big projects with large UI changes
  • if you want to include a framework, more dedicated solutions for different frameworks are available

This file will not cover how to develop extensions. Learn more about that for example in the documentation provided by Google.

What are the tasks the environment automates?

  • compiling
    • sass to css, JS files
  • minimize HTML
  • minimize SVGs
  • package zip file for upload to chrome and firefox extension store or for thunderbird
  • testing is optionally avialable

How to use?

Use npm start or npm run dev to start the development server. Any changes will be reflected in the dist folder.

Use npm build to only create the dist folder without watching changes in files.

Use npm package in order to create the .zip files for Chromium based browsers and Firefox and the .xpi file for Thunderbird.