Skip to content

Commit 6a9b25a

Browse files
committed
fix(webpack): always save index.html to disk
1 parent bddb2b6 commit 6a9b25a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: templates/app/webpack.make.js

+7-7
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)