generator-browser-modern-extension
Version:
Scaffold out a boilerplate for creating a browser extension with up-to-date tools and autoreload
32 lines (31 loc) • 945 B
JSON
{
"name": "<%= title %>",
"version": "0.0.0",
"manifest_version": 2,
"description": "<%= description %>",
"author": "<%= name %>",<% if (isOpenSource) { %>
"homepage_url": "https://github.com/<%= githubUsername %>/<%= kebabTitle %>",<% } %>
"icons": {
"128": "images/icon.png"
},<% if (action) { %>
"<%= actionType === 'browser' ? 'browser' : 'page' %>_action": {
"default_icon": "images/icon.png",
"default_popup": "popup.html"
},<% } %><% if (optionPage) { %>
"options_ui": {
"chrome_style": true,
"page": "options.html"
},<% } %><% if (contentScripts) { %>
"content_scripts": [
{
"matches": ["https://*/*"],
"run_at": "document_end",
"js": ["content.js"]
}
],<% } %><% if (backgroundScripts) { %>
"background": {
"scripts": ["background.js"],
"persistent": true
},<% } %>
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
}