Open wottpal opened 6 days ago
Hey there, my extension was just rejected because it had a content_scripts.css field with a hallucinated file in there.
content_scripts.css
Input:
"content_scripts": [ { "matches": [ "https://google.com/search*", "https://www.google.com/search*", "https://google.com/", "https://www.google.com/" ], "js": ["src/content/index.ts"] } ]
Output:
"content_scripts": [ { "matches": [ "https://google.com/search*", "https://www.google.com/search*", "https://google.com/", "https://www.google.com/" ], "js": [ "content_scripts/content-0.js" ], "css": [ "content_scripts/content-0.css" ] } ],
Workaround:
jq '.content_scripts |= map_values(del(.css))' manifest.json > tmp.json && mv tmp.json manifest.json
got it, taking a look asap
Hey there, my extension was just rejected because it had a
content_scripts.css
field with a hallucinated file in there.Input:
Output:
Workaround: