@@ -18,6 +18,7 @@ const skipDLLs =
18
18
module . parent ?. filename . includes ( 'webpack.config.renderer.dev.dll' ) ||
19
19
module . parent ?. filename . includes ( 'webpack.config.eslint' ) ;
20
20
21
+ const htmlPagesNames = [ 'splash.ejs' , 'index.ejs' ]
21
22
/**
22
23
* Warn if the DLL is not built
23
24
*/
@@ -233,19 +234,21 @@ const configuration: webpack.Configuration = {
233
234
234
235
new MonacoWebpackPlugin ( { languages : [ 'json' ] , features : [ '!rename' ] } ) ,
235
236
236
- new HtmlWebpackPlugin ( {
237
- filename : path . join ( 'index.html' ) ,
238
- template : path . join ( webpackPaths . desktopPath , 'index.ejs' ) ,
239
- minify : {
240
- collapseWhitespace : true ,
241
- removeAttributeQuotes : true ,
242
- removeComments : true ,
243
- } ,
244
- isBrowser : false ,
245
- env : process . env . NODE_ENV ,
246
- isDevelopment : process . env . NODE_ENV !== 'production' ,
247
- nodeModules : webpackPaths . appNodeModulesPath ,
248
- } ) ,
237
+ ...htmlPagesNames . map ( ( htmlPageName ) => (
238
+ new HtmlWebpackPlugin ( {
239
+ filename : path . join ( `${ htmlPageName . split ( '.' ) ?. [ 0 ] } .html` ) ,
240
+ template : path . join ( webpackPaths . desktopPath , htmlPageName ) ,
241
+ minify : {
242
+ collapseWhitespace : true ,
243
+ removeAttributeQuotes : true ,
244
+ removeComments : true ,
245
+ } ,
246
+ isBrowser : false ,
247
+ env : process . env . NODE_ENV ,
248
+ isDevelopment : process . env . NODE_ENV !== 'production' ,
249
+ nodeModules : webpackPaths . appNodeModulesPath ,
250
+ } )
251
+ ) ) ,
249
252
250
253
new webpack . DefinePlugin ( {
251
254
'process.env.NODE_ENV' : JSON . stringify ( 'development' ) ,
0 commit comments