Skip to content

Commit

Permalink
manifest_version update to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
cacarun committed Mar 12, 2023
1 parent 8c528fa commit 8489bdc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 28 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "0.1.0",
"private": true,
"scripts": {
"watch": "vue-cli-service build --watch",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
Expand Down
3 changes: 0 additions & 3 deletions src/background/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import hotReload from '@/utils/hotReload'
hotReload()

console.log('hello world background')
50 changes: 27 additions & 23 deletions src/plugins/manifest.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,41 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "hello-word-plugin",
"description": "vue3版本的chrome插件",
"version": "1.0.0",
"browser_action": {
"default_title": "hello-word-plugin",
"default_icon": "assets/icon48.png",
"default_popup": "popup.html"
},
"permissions": [],
"background": {
"scripts": [
"js/background.js"
]
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "assets/icon48.png",
"32": "assets/icon48.png",
"48": "assets/icon48.png",
"128": "assets/icon48.png"
}
},
"icons": {
"16": "assets/icon16.png",
"16": "assets/icon48.png",
"32": "assets/icon48.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
"128": "assets/icon48.png"
},
"host_permissions": [
"https://*.openai.com/"
],
"background": {
"service_worker": "js/background.js"
},
"content_scripts": [
{
"matches": [
"http://*/*",
"https://*/*"
"https://www.zhihu.com/question/*"
],
"js": [
"js/chunk-vendors.js"
],
"css": [
"css/popup.css"
],
"css": ["css/popup.css"],
"js": ["js/chunk-vendors.js"],
"run_at": "document_idle"
"run_at": "document_end"
}
],
"web_accessible_resources": [
"js/inject.js"
],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
]
}
2 changes: 1 addition & 1 deletion src/popup/components/app.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="popup-header">hello world</div>
<div class="popup-header">hello world123</div>
</template>

<script>
Expand Down

0 comments on commit 8489bdc

Please sign in to comment.