File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -332,8 +332,8 @@ describe('electron:build', () => {
332
332
const stringConfig = configType === 'string config'
333
333
await runCommand ( 'electron:build' , {
334
334
pages : {
335
- index : stringConfig ? '' : { fileName : 'index.html' } ,
336
- subpage : stringConfig ? '' : { fileName : 'subpage.html' }
335
+ index : stringConfig ? '' : { filename : 'index.html' } ,
336
+ subpage : stringConfig ? '' : { filename : 'subpage.html' }
337
337
}
338
338
} )
339
339
expect ( fs . writeFileSync ) . toBeCalledWith (
Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ module.exports = (api, options) => {
113
113
// Mock data from legacy build
114
114
const pages = options . pages || { index : '' }
115
115
Object . keys ( pages ) . forEach ( page => {
116
- if ( pages [ page ] . fileName ) {
116
+ if ( pages [ page ] . filename ) {
117
117
// If page is configured as an object, use the filename (without .html)
118
- page = pages [ page ] . fileName . replace ( / \. h t m l $ / , '' )
118
+ page = pages [ page ] . filename . replace ( / \. h t m l $ / , '' )
119
119
}
120
120
fs . writeFileSync (
121
121
path . join ( bundleOutputDir , `legacy-assets-${ page } .html.json` ) ,
You can’t perform that action at this time.
0 commit comments