File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 3
3
var webpack = require ( 'webpack' ) ;
4
4
var autoprefixer = require ( 'autoprefixer' ) ;
5
5
var HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
6
+ var HtmlWebpackHarddiskPlugin = require ( 'html-webpack-harddisk-plugin' ) ;
6
7
var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
7
8
var CommonsChunkPlugin = webpack . optimize . CommonsChunkPlugin ;
8
9
var fs = require ( 'fs' ) ;
@@ -72,7 +73,7 @@ module.exports = function makeWebpackConfig(options) {
72
73
73
74
// Output path from the view of the page
74
75
// Uses webpack-dev-server in development
75
- publicPath : BUILD || DEV ? '/' : `http://localhost:${ 8080 } /` ,
76
+ publicPath : BUILD || DEV || E2E ? '/' : `http://localhost:${ 8080 } /` ,
76
77
//publicPath: BUILD ? '/' : 'http://localhost:' + env.port + '/',
77
78
78
79
// Filename for entry points
@@ -305,9 +306,11 @@ module.exports = function makeWebpackConfig(options) {
305
306
template : 'client/_index.html'
306
307
}
307
308
if ( E2E ) {
308
- htmlConfig . filename = 'client/index.html' ;
309
+ htmlConfig . filename = '../client/index.html' ;
310
+ htmlConfig . alwaysWriteToDisk = true ;
309
311
}
310
312
config . plugins . push ( new HtmlWebpackPlugin ( htmlConfig ) ) ;
313
+ if ( E2E ) config . plugins . push ( new HtmlWebpackHarddiskPlugin ( ) ) ;
311
314
312
315
// Add build specific plugins
313
316
if ( BUILD ) {
You can’t perform that action at this time.
0 commit comments