File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 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) {
320320 // Reference: https://github.com/ampedandwired/html-webpack-plugin
321321 // Render index.html
322322 let htmlConfig = {
323- template : 'client/_index.html'
323+ template : 'client/_index.html' ,
324+ filename : '../client/index.html' ,
325+ alwaysWriteToDisk : true
324326 }
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+ ) ;
331331
332332 // Add build specific plugins
333333 if ( BUILD ) {
You can’t perform that action at this time.
0 commit comments