react-tiny-components-prese.../server.js
2015-09-29 22:04:16 -04:00

11 lines
323 B
JavaScript

import Express from 'express';
import ServeStatic from 'serve-static';
import path from 'path';
const app = Express();
app.use(ServeStatic('./dist'));
app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, './dist/index.html')); });
app.listen(3500, (server) => { console.log('server listening on 3500'); });