I am getting a 404 on page refresh in my angular 2 app. I have useHash set to false. I am using web-pack and it works fine in development but in production it doesn't work. I this is because in development i have
devServer : {
port : METADATA.port,
host : METADATA.host,
historyApiFallback : true,
watchOptions : {
aggregateTimeout : 300,
poll : 1000
}
},
How can i make this work using http-server
in production, without setting useHash to true?