Skip to content

Instantly share code, notes, and snippets.

@HereOrCode
Created September 30, 2023 02:36
Show Gist options
  • Save HereOrCode/0f3f68ff09ac731fa7e678524ba1ece0 to your computer and use it in GitHub Desktop.
Save HereOrCode/0f3f68ff09ac731fa7e678524ba1ece0 to your computer and use it in GitHub Desktop.
Manifest file format

Every extension requires a JSON-formatted file, named manifest.json, that provides important information. This file must be located in the extension's root directory.

https://developer.chrome.com/docs/extensions/mv3/manifest/

{
  "name": "crx-vue-multi-page",
  "description": "A Chrome extension demo.",
  "version": "1.0.0",
  "icons": {
    "16": "assets/icons/icon16.png",
    "48": "assets/icons/icon48.png",
    "128": "assets/icons/icon128.png"
  },
  "action": {
    "default_popup": "../popup.html"
  },
  "options_page": "../options.html",
  "chrome_url_overrides" : { 
    "bookmarks": "../bookmarks.html" 
  },
  "content_scripts": [{
    "matches": [ "<all_urls>" ],
    "js": [ "content-scripts/content.ts"],
    "run_at": "document_start"
  }],
  "web_accessible_resources": [{
    "matches": ["<all_urls>"],
    "resources": ["assets/*"]
  }],
  "manifest_version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment