Disable dot rule
This commit is contained in:
parent
c1dc69a038
commit
3d968e31da
|
@ -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 New Issue