feat(webpack): When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. Enable devServer.historyApiFallback by setting it to true.
This commit is contained in:
parent
023c002b2a
commit
a8d96fbeaa
|
@ -10,5 +10,7 @@ module.exports = merge(common, {
|
|||
devtool: 'inline-source-map',
|
||||
devServer: {
|
||||
static: path.resolve(__dirname, '../dist'),
|
||||
//When using the HTML5 History API, the index.html page will likely have to be served in place of any 404 responses. Enable devServer.historyApiFallback by setting it to true.
|
||||
historyApiFallback: true,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue