Add manifest v3 for Chrome extensions store

This commit is contained in:
visortelle 2022-01-23 09:21:17 +01:00
parent deb2eb4fe5
commit 46fa50ba58
4 changed files with 31 additions and 6 deletions

View File

@ -14,9 +14,6 @@
"all_frames": true
}
],
"background": {
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"128": "images/icon-192.png"

View File

@ -0,0 +1,31 @@
{
"manifest_version": 3,
"name": "Haskell Spotlight",
"short_name": "Haskell Spotlight",
"description": "Search on Hackage, Hoogle and more soon.",
"homepage_url": "https://github.com/visortelle/hackage-ui",
"version": "0.0.7",
"icons": { "192": "images/icon-192.png" },
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["contentscript.js"],
"run_at": "document_start",
"all_frames": true
}
],
"action": {
"default_icon": {
"128": "images/icon-192.png"
},
"default_title": "Haskell Spotlight",
"default_popup": "popup.html"
},
"permissions": [
"storage",
"unlimitedStorage"
],
"host_permissions": [
"https://hackage-ui.vercel.app/api/*"
]
}

View File

@ -1 +0,0 @@
export default {};

View File

@ -1,7 +1,6 @@
import path from "path";
import { Configuration, ProvidePlugin } from "webpack";
import TerserPlugin from "terser-webpack-plugin";
import * as postcss from 'postcss';
export default ({
mode,
@ -10,7 +9,6 @@ export default ({
}): Configuration => ({
mode,
entry: {
background: path.resolve(__dirname, "./scripts/contentscript.ts"),
contentscript: path.resolve(__dirname, "./scripts/contentscript.ts"),
popup: path.resolve(__dirname, "./scripts/popup.ts"),
},