F
const express = require('express');
const app = express();
const path = require('path');
// Serve static files....
app.use(express.static(__dirname + '/dist/'));
// default Heroku PORT
app.listen(process.env.PORT || 8080);
// Send all requests to index.html
app.get('/*', function(req, res) {
res.sendFile(path.join(__dirname + '/dist/index.html'));
});
console.log("console listening");