I have the background.js, content.js, manifest.json
files in thepublic
folder. However, the file popup.js
is in the foldersrc
. Do I need to configure any paths to these files background.js, content.js, popup.js
in themanifest.json
file. Will these files be automatically linked if I transfer data between them?
structure folders
//app
//public
//background.js
//content.js
//manifest.json
//src
//popup.js
manifest.json
{
"manifest_version": 2,
"name": "chrome extension",
"description": "Chrome extension",
"version": "0.0.1",
"content_scripts": [
{
"matches": ["https://*.app.com/*"],
"js": ["content.js"]
}
],
"browser_action": {
"default_popup": "index.html",
"default_title": "Open the popup"
},
"icons": {
"16": "assets/icon-128.png",
"48": "assets/icon-128.png",
"128": "assets/icon-128.png"
},
"permissions": ["https://*.app.com/*", "storage"],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
}