react-tiny-components-prese.../server.js

11 lines
323 B
JavaScript
Raw Normal View History

2015-09-30 02:04:16 +00:00
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'); });