Disable dot rule

This commit is contained in:
Maxim Filippov 2018-12-06 21:55:49 +03:00
parent c1dc69a038
commit 3d968e31da

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)