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', () => {
332332 const stringConfig = configType === 'string config'
333333 await runCommand ( 'electron:build' , {
334334 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' }
337337 }
338338 } )
339339 expect ( fs . writeFileSync ) . toBeCalledWith (
Original file line number Diff line number Diff line change @@ -113,9 +113,9 @@ module.exports = (api, options) => {
113113 // Mock data from legacy build
114114 const pages = options . pages || { index : '' }
115115 Object . keys ( pages ) . forEach ( page => {
116- if ( pages [ page ] . fileName ) {
116+ if ( pages [ page ] . filename ) {
117117 // 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 $ / , '' )
119119 }
120120 fs . writeFileSync (
121121 path . join ( bundleOutputDir , `legacy-assets-${ page } .html.json` ) ,
You can’t perform that action at this time.
0 commit comments