Disable dot rule
This commit is contained in:
parent
c1dc69a038
commit
3d968e31da
1 changed files with 6 additions and 1 deletions
|
@ -46,7 +46,12 @@ Object.keys(proxyTable).forEach(function (context) {
|
|||
})
|
||||
|
||||
// handle fallback for HTML5 history API
|
||||
app.use(require('connect-history-api-fallback')())
|
||||
app.use(require('connect-history-api-fallback')({
|
||||
disableDotRule: true,
|
||||
rewrites: [
|
||||
{from: /\/app.js/, to: '/app.js'}
|
||||
]
|
||||
}))
|
||||
|
||||
// serve webpack bundle output
|
||||
app.use(devMiddleware)
|
||||
|
|
Loading…
Reference in a new issue