We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
index.html
1 parent bddb2b6 commit 6a9b25aCopy full SHA for 6a9b25a
1 file changed
templates/app/webpack.make.js
@@ -320,14 +320,14 @@ module.exports = function makeWebpackConfig(options) {
320
// Reference: https://github.com/ampedandwired/html-webpack-plugin
321
// Render index.html
322
let htmlConfig = {
323
- template: 'client/_index.html'
+ template: 'client/_index.html',
324
+ filename: '../client/index.html',
325
+ alwaysWriteToDisk: true
326
}
- if(E2E) {
- 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());
+ config.plugins.push(
+ new HtmlWebpackPlugin(htmlConfig),
+ new HtmlWebpackHarddiskPlugin()
+ );
331
332
// Add build specific plugins
333
if(BUILD) {
0 commit comments