File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -320,14 +320,14 @@ module.exports = function makeWebpackConfig(options) {
320
320
// Reference: https://github.com/ampedandwired/html-webpack-plugin
321
321
// Render index.html
322
322
let htmlConfig = {
323
- template : 'client/_index.html'
323
+ template : 'client/_index.html' ,
324
+ filename : '../client/index.html' ,
325
+ alwaysWriteToDisk : true
324
326
}
325
- if ( E2E ) {
326
- htmlConfig . filename = '../client/index.html' ;
327
- htmlConfig . alwaysWriteToDisk = true ;
328
- }
329
- config . plugins . push ( new HtmlWebpackPlugin ( htmlConfig ) ) ;
330
- if ( E2E ) config . plugins . push ( new HtmlWebpackHarddiskPlugin ( ) ) ;
327
+ config . plugins . push (
328
+ new HtmlWebpackPlugin ( htmlConfig ) ,
329
+ new HtmlWebpackHarddiskPlugin ( )
330
+ ) ;
331
331
332
332
// Add build specific plugins
333
333
if ( BUILD ) {
You can’t perform that action at this time.
0 commit comments