Disable dot rule

This commit is contained in:
Maxim Filippov 2018-12-06 21:55:49 +03:00
parent c1dc69a038
commit 3d968e31da
1 changed files with 6 additions and 1 deletions

View File

@ -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)