Simply adding a file to the root of the chrome-mv3 folder for dev and production when running plasmo
I need to add a
schema.json
file to the root (for development and production once distributed). Is there a straightforward way to achieve bundling the file and having it located in the root of the bundle?
- it must be in the root
- see above; so NOT in the assets folderSolution:Jump to solution
It's as easy as adding the file to the root and then including it in
package.json
's manifest
😰
`"web_accessible_resources": [
{
"resources": [...2 Replies
@Shai Hulud has reached level 3. GG!
Solution
It's as easy as adding the file to the root and then including it in
package.json
's manifest
😰
"web_accessible_resources": [
{
"resources": [
"assets/config.json",
"assets/icon.png",
"schema.json"
],
"matches": [
"https://*/*",
"http://*/*"
]
}
]