File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,7 @@ function Server(compiler, options) {
226
226
if ( options . historyApiFallback ) {
227
227
// Fall back to /index.html if nothing else matches.
228
228
app . use (
229
- historyApiFallback ( typeof options . historyApiFallback === "object" ? options . historyApiFallback : null ) ,
230
- contentBase ? express . static ( contentBase ) : undefined
229
+ historyApiFallback ( typeof options . historyApiFallback === "object" ? options . historyApiFallback : null )
231
230
) ;
232
231
}
233
232
} ,
@@ -294,7 +293,7 @@ function Server(compiler, options) {
294
293
if ( contentBase !== false )
295
294
defaultFeatures . push ( "contentBaseFiles" ) ;
296
295
if ( options . historyApiFallback )
297
- defaultFeatures . push ( "historyApiFallback" , "middleware" ) ;
296
+ defaultFeatures . push ( "historyApiFallback" , "middleware" , "contentBaseFiles" ) ;
298
297
defaultFeatures . push ( "magicHtml" ) ;
299
298
if ( contentBase !== false )
300
299
defaultFeatures . push ( "contentBaseIndex" ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ var request = require("supertest");
3
3
var helper = require ( "./helper" ) ;
4
4
var config = require ( "./fixtures/historyapifallback-config/webpack.config" ) ;
5
5
var config2 = require ( "./fixtures/historyapifallback-2-config/webpack.config" ) ;
6
+ var config3 = require ( "./fixtures/historyapifallback-3-config/webpack.config" ) ;
6
7
7
8
describe ( "HistoryApiFallback" , function ( ) {
8
9
var server ;
@@ -113,7 +114,7 @@ describe("HistoryApiFallback", function() {
113
114
114
115
describe ( "in-memory files" , function ( ) {
115
116
before ( function ( done ) {
116
- server = helper . start ( config2 , {
117
+ server = helper . start ( config3 , {
117
118
contentBase : path . join ( __dirname , "fixtures/historyapifallback-3-config" ) ,
118
119
historyApiFallback : true
119
120
} , done ) ;
You can’t perform that action at this time.
0 commit comments