File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,17 @@ if (ENV === 'development') {
49
49
plugins : [ ] ,
50
50
51
51
devServer : {
52
- contentBase : path . join ( __dirname , '../demo/' ) ,
52
+ // contentBase: path.join(__dirname, '../demo/'),
53
+ historyApiFallback : {
54
+ rewrites : [
55
+ { from : / ^ \/ $ / , to : '/demo/index.html' } ,
56
+ { from : / \/ i n d e x \. h t m l $ / , to : '/demo/index.html' } ,
57
+ { from : / \/ c s s \/ s t y l e \. c s s $ / , to : '/demo/css/style.css' } ,
58
+ { from : / \/ c s s \/ b o o t s t r a p \. c s s $ / , to : '/demo/css/bootstrap.css' } ,
59
+ { from : / \/ s e r v i c e D a t a s o u r c e \/ s e r v i c e D a t a s o u r c e \. h t m l $ / , to : '/demo/serviceDatasource/serviceDatasource.html' } ,
60
+ { from : / \/ s e r v i c e D a t a s o u r c e \/ s e r v i c e D a t a s o u r c e \. j s $ / , to : '/demo/serviceDatasource/serviceDatasource.js' }
61
+ ]
62
+ } ,
53
63
inline : true ,
54
64
quiet : false ,
55
65
hot : true ,
You can’t perform that action at this time.
0 commit comments