I am using webpack-dev-server for an angularjs app, I start it from a task in package.json like this:
"scripts": {
"start-api": "node api/server.js",
"dev": "webpack-dev-server --env dev --history-api-fallback --inline --progress --port 5000",
"start": "npm run dev"
},
I have a backend api server that uses koa and is running on the same port:
const koa = require('koa');
app.listen(5000);
module.exports.app;
When the koa server is started, it intercepts all requests and I cannot browse to the angular browser app.
Should I be serving everything from koa or is there a way to have the two working together?