| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -321,15 +321,17 @@ module.exports = function makeWebpackConfig(options) { | |||
| 321 | 321 | // Skip rendering index.html in test mode | |
| 322 | 322 | // Reference: https://github.com/ampedandwired/html-webpack-plugin | |
| 323 | 323 | // Render index.html | |
| 324 | - let htmlConfig = { | ||
| 325 | - template: 'client/_index.html', | ||
| 326 | - filename: '../client/index.html', | ||
| 327 | - alwaysWriteToDisk: true | ||
| 324 | + if(!TEST) { | ||
| 325 | + let htmlConfig = { | ||
| 326 | + template: 'client/_index.html', | ||
| 327 | + filename: '../client/index.html', | ||
| 328 | + alwaysWriteToDisk: true | ||
| 329 | + } | ||
| 330 | + config.plugins.push( | ||
| 331 | + new HtmlWebpackPlugin(htmlConfig), | ||
| 332 | + new HtmlWebpackHarddiskPlugin() | ||
| 333 | + ); | ||
| 328 | 334 | } | |
| 329 | - config.plugins.push( | ||
| 330 | - new HtmlWebpackPlugin(htmlConfig), | ||
| 331 | - new HtmlWebpackHarddiskPlugin() | ||
| 332 | - ); | ||
| 333 | 335 | ||
| 334 | 336 | // Add build specific plugins | |
| 335 | 337 | if(BUILD) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments