Skip to content

Commit 4f5fa81

Browse files
committed
Fix generation bug
1 parent c736aac commit 4f5fa81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

generator/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = (api, options) => {
3737
api.extendPackage(pkg)
3838
api.render('./template/base-app', { name, ...options })
3939

40-
if (options.popupPage) {
40+
if (options.components.popup) {
4141
api.render('./template/popup', { name, ...options })
4242

4343
pkg.vue.pages['popup/popup'] = {
@@ -46,7 +46,7 @@ module.exports = (api, options) => {
4646
}
4747
}
4848

49-
if (options.optionsPage) {
49+
if (options.components.options) {
5050
api.render('./template/options', { name, ...options })
5151

5252
pkg.vue.pages['options/options'] = {
@@ -55,7 +55,7 @@ module.exports = (api, options) => {
5555
}
5656
}
5757

58-
if (options.contentScript) {
58+
if (options.components.contentScript) {
5959
api.render('./template/content-script', { ...options })
6060
}
6161

0 commit comments

Comments
 (0)