File tree 1 file changed +14
-6
lines changed
1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,18 @@ if (!Object.assign) Object.assign = require('object-assign')`
63
63
64
64
// 6. handle enhanceApp.js
65
65
const enhanceAppPath = path . resolve ( sourceDir , '.vuepress/enhanceApp.js' )
66
- writeEnhanceTemp ( 'enhanceApp.js' , enhanceAppPath , fs . existsSync ( enhanceAppPath ) )
66
+ writeEnhanceTemp (
67
+ 'enhanceApp.js' ,
68
+ enhanceAppPath ,
69
+ fs . existsSync ( enhanceAppPath )
70
+ )
67
71
68
- // 7. handle the theme index.js
69
- writeEnhanceTemp ( 'themeEnhanceApp.js' , options . themeApp , fs . existsSync ( options . themeApp ) )
72
+ // 7. handle the theme enhanceApp.js
73
+ writeEnhanceTemp (
74
+ 'themeEnhanceApp.js' ,
75
+ options . themeEnhanceAppPath ,
76
+ fs . existsSync ( options . themeEnhanceAppPath )
77
+ )
70
78
71
79
return options
72
80
}
@@ -167,9 +175,9 @@ async function resolveOptions (sourceDir) {
167
175
options . notFoundPath = path . resolve ( __dirname , 'default-theme/NotFound.vue' )
168
176
}
169
177
170
- const themeApp = path . resolve ( themeDir , 'index.js' )
171
- if ( fs . existsSync ( themeApp ) ) {
172
- options . themeApp = themeApp
178
+ const themeEnhanceAppPath = path . resolve ( themeDir , 'index.js' )
179
+ if ( fs . existsSync ( themeEnhanceAppPath ) ) {
180
+ options . themeEnhanceAppPath = themeEnhanceAppPath
173
181
}
174
182
}
175
183
You can’t perform that action at this time.
0 commit comments