Skip to content

Commit ea33985

Browse files
committed
Fix bug in malformed manifest.json scaffolding
1 parent bbef427 commit ea33985

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

generator/template/base-app/src/manifest.json

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,45 @@
44
"homepage_url": "http://localhost/",
55
"description": "A Vue Browser Extension",
66
"default_locale": "en",
7-
"icons": {
8-
"16": "icons/16.png",
9-
"48": "icons/48.png",
10-
"128": "icons/128.png"
11-
},
127
"permissions": [
138
<%_ if (options.components.contentScripts) { -%>
149
"activeTab",
15-
<%_
16-
} -%>
10+
<%_ } -%>
1711
"<all_urls>",
1812
"*://*/*"
1913
],
14+
"icons": {
15+
"16": "icons/16.png",
16+
"48": "icons/48.png",
17+
"128": "icons/128.png"
2018
<%_ if (options.components.background) { -%>
19+
},
2120
"background": {
22-
"scripts": [
23-
"background.js"
24-
],
25-
"persistent": false
26-
},
27-
<%_
28-
} -%>
21+
"scripts": [
22+
"background.js"
23+
],
24+
"persistent": false
25+
<%_ } -%>
26+
},
2927
"browser_action": {
3028
<%_ if (options.components.popup) { -%>
3129
"default_popup": "popup/popup.html",
32-
<%_
33-
} -%>
30+
<%_ } -%>
3431
"default_title": "__MSG_extName__",
3532
"default_icon": {
3633
"19": "icons/19.png",
3734
"38": "icons/38.png"
3835
}
3936
<%_ if (options.components.options) { -%>
40-
},
41-
"options_ui": {
42-
"page": "options/options.html",
43-
"<%- options.api %>_style": true
44-
<%_
45-
} -%>
46-
}
47-
<%_ if (options.components.override) { -%>
37+
},
38+
"options_ui": {
39+
"page": "options/options.html",
40+
"<%- options.api %>_style": true
41+
<%_ } -%>
42+
<%_ if (options.components.override) { -%>
43+
},
4844
"chrome_url_overrides": {
49-
"<%- options.components.overrideOption || 'newtab' %>": "override/override.html"
50-
}
51-
<%_
52-
} -%>
45+
"<%- options.components.overrideOption || 'newtab' %>": "override/override.html"
46+
<%_ } -%>
47+
}
5348
}

0 commit comments

Comments
 (0)