File tree Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Expand file tree Collapse file tree 2 files changed +27
-22
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ export default Joi.object({
18
18
Joi . array ( ) ,
19
19
Joi . string ( ) ,
20
20
] ,
21
- historyApiFallback : Joi . boolean ( ) ,
21
+ historyApiFallback : Joi . alternatives ( ) . try ( [
22
+ Joi . object ( ) ,
23
+ Joi . boolean ( ) ,
24
+ ] ) ,
22
25
compress : Joi . boolean ( ) ,
23
26
port : Joi . number ( ) ,
24
27
public : Joi . string ( ) ,
Original file line number Diff line number Diff line change @@ -32,48 +32,50 @@ const validModuleConfigs = [
32
32
// #13
33
33
{ historyApiFallback : true } ,
34
34
// #14
35
- { compress : true } ,
35
+ { historyApiFallback : { index : '/foo-app/' } } ,
36
36
// #15
37
- { port : 3000 } ,
37
+ { compress : true } ,
38
38
// #16
39
- { public : 'localhost' } ,
39
+ { port : 3000 } ,
40
40
// #17
41
- { host : '0.0.0.0 ' } ,
41
+ { public : 'localhost ' } ,
42
42
// #18
43
- { publicPath : '/public/path/ ' } ,
43
+ { host : '0.0.0.0 ' } ,
44
44
// #19
45
- { publicPath : 'public/path/' } ,
45
+ { publicPath : '/ public/path/' } ,
46
46
// #20
47
- { outputPath : '/' } ,
47
+ { publicPath : 'public/path /' } ,
48
48
// #21
49
- { filename : 'bundle.js ' } ,
49
+ { outputPath : '/ ' } ,
50
50
// #22
51
- { watchOptions : { } } ,
51
+ { filename : 'bundle.js' } ,
52
52
// #23
53
- { hot : true } ,
53
+ { watchOptions : { } } ,
54
54
// #24
55
- { stats : { } } ,
55
+ { hot : true } ,
56
56
// #25
57
- { stats : 'none' } ,
57
+ { stats : { } } ,
58
58
// #26
59
- { stats : 'errors-only ' } ,
59
+ { stats : 'none ' } ,
60
60
// #27
61
- { stats : 'minimal ' } ,
61
+ { stats : 'errors-only ' } ,
62
62
// #28
63
- { stats : 'normal ' } ,
63
+ { stats : 'minimal ' } ,
64
64
// #29
65
- { stats : 'verbose ' } ,
65
+ { stats : 'normal ' } ,
66
66
// #30
67
- { noInfo : true } ,
67
+ { stats : 'verbose' } ,
68
68
// #31
69
- { proxy : { } } ,
69
+ { noInfo : true } ,
70
70
// #32
71
- { proxy : 'http://proxy.url/' } ,
71
+ { proxy : { } } ,
72
72
// #33
73
- { proxy : [ ] } ,
73
+ { proxy : 'http://proxy.url/' } ,
74
74
// #34
75
- { staticOptions : { } } ,
75
+ { proxy : [ ] } ,
76
76
// #35
77
+ { staticOptions : { } } ,
78
+ // #36
77
79
{ headers : { } } ,
78
80
]
79
81
You can’t perform that action at this time.
0 commit comments