Add Edge target and adapt options page to Edge
Now the extension can be built with Edge as a target. This change also
adapts the option page for Edge so it doesn't have a horizontal
scrollbar.
Fixed: translateselectedtext:6
Change-Id: Ie0a38b85d1c604610942b00269004c51fc02963d
diff --git a/Makefile b/Makefile
index b2c9d49..166ca7b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: node_deps clean_dist deps clean_deps serve_chromium release release_chromium_stable release_chromium_beta build_test_extension clean_releases clean
+.PHONY: node_deps clean_dist deps clean_deps serve_chromium serve_edge release release_chromium_stable release_chromium_beta release_edge build_test_extension clean_releases clean
.DEFAULT_GOAL := release
WEBPACK := ./node_modules/webpack-cli/bin/cli.js
@@ -20,7 +20,10 @@
serve_chromium: deps
$(WEBPACK) --mode development --env browser_target=chromium --watch
-release: release_chromium_stable release_chromium_beta
+serve_edge: deps
+ $(WEBPACK) --mode development --env browser_target=edge --watch
+
+release: release_chromium_stable release_chromium_beta release_edge
release_chromium_stable: deps
$(WEBPACK) --mode production --env browser_target=chromium
@@ -32,6 +35,11 @@
$(RELEASE_SCRIPT) -c beta -b chromium -f
rm -rf dist/chromium
+release_edge: deps
+ $(WEBPACK) --mode production --env browser_target=edge
+ $(RELEASE_SCRIPT) -c stable -b edge -f
+ rm -rf dist/edge
+
# Target to build the extension for webext lint in the Zuul Check Pipeline.
build_test_extension: deps
$(WEBPACK) --mode production --env browser_target=chromium