From 9bcd83c1c36a76e3c214a93e10e62cf0f0b10528 Mon Sep 17 00:00:00 2001 From: Fred Date: Sat, 26 Feb 2022 23:06:45 +0800 Subject: [PATCH] support build edge extension --- README.md | 16 +++++++++------- webpack.config.ts | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 996979bc30..9bc1c38305 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ $ yarn start # start a continuous webpack build that will auto-update with chang Once the build is running, you can install the extension in your browser of choice: - [Firefox instructions](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/) -- [Chrome, Brave, and Opera instructions](https://developer.chrome.com/docs/extensions/mv3/getstarted/#manifest) +- [Chrome, Brave, Edge, and Opera instructions](https://developer.chrome.com/docs/extensions/mv3/getstarted/#manifest) - Note that these instructions are for Chrome, but substituting - `brave://extensions` or `opera://extensions` for `chrome://extensions` + `brave://extensions` or `edge://extensions` or `opera://extensions` for `chrome://extensions` depending on browser should get you to the same buttons. Extension bundles for each browser are in `dist/`. @@ -291,11 +291,13 @@ src/ # extension source files dist/ # output directory for builds brave/ # browser-specific - firefox/ # build - chrome/ # directories - brave.zip # browser-specific - firefox.zip # production - chrome.zip # bundles + chrome/ # build + edge/ # directories + firefox/ + brave.zip # browser-specific + chrome.zip # production + edge.zip # bundles + firefox.zip build-utils/ # build-related helpers, used in webpack.config.js *.js diff --git a/webpack.config.ts b/webpack.config.ts index 92264f576d..193482700d 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -15,7 +15,7 @@ import ForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin" import { GitRevisionPlugin } from "git-revision-webpack-plugin" import WebExtensionArchivePlugin from "./build-utils/web-extension-archive-webpack-plugin" -const supportedBrowsers = ["firefox", "brave", "opera", "chrome"] +const supportedBrowsers = ["brave", "chrome", "edge", "firefox", "opera"] const gitRevisionPlugin = new GitRevisionPlugin()