fix: build-chrome-dev script

This commit is contained in:
Michal Szczepanski 2024-04-27 02:48:02 +02:00
parent 099392be07
commit df6017acec
2 changed files with 2 additions and 61 deletions

View File

@ -10,7 +10,7 @@ fi
export NODE_ENV=development
# swap manifests
cp manifest/manifest.dev.json manifest/manifest.json
cp manifest/manifest.dev.json src/manifest.json
# clean old dir
rm -r dist/$dir_name
@ -19,7 +19,7 @@ rm -r dist/$dir_name
npm run dev:ch
# swap manifests back
cp manifest/manifest.dev.json manifest/manifest.json
cp manifest/manifest.dev.json src/manifest.json
# pack build
cd dist/$dir_name

View File

@ -1,59 +0,0 @@
{
"manifest_version": 3,
"name": "pinmenote-dev",
"short_name": "pinmenote-dev",
"description": "Pin note, modify, draw, comment, archive and save website",
"version": "0.1.7",
"icons": {
"16": "assets/icon/16.png",
"32": "assets/icon/32.png",
"64": "assets/icon/64.png",
"128": "assets/icon/128.png"
},
"author": "pinmenote (contact@pintmenote.com)",
"action": {
"default_icon": {
"16": "assets/icon/16.png",
"24": "assets/icon/24.png",
"32": "assets/icon/32.png"
},
"default_title": "pinmenote-dev",
"default_popup": "default-popup/default-popup.html"
},
"permissions": [
"activeTab",
"storage",
"unlimitedStorage",
"scripting",
"downloads"
],
"background": {
"service_worker": "service-worker/service-worker.ts",
"type": "module"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"all_frames": false,
"js": [
"content-script/content-script.ts"
],
"run_at": "document_start"
},
{
"matches": [
"<all_urls>"
],
"all_frames": true,
"js": [
"iframe/iframe-script.ts"
],
"run_at": "document_idle"
}
],
"options_ui": {
"page": "options-ui/options-ui.html"
}
}