startit/single_page-app/index.js

8 lines
188 B
JavaScript

var connect = require('connect');
var serveStatic = require('serve-static');
connect()
.use(serveStatic('./dist'))
.listen(8080, () => console.log('Server running on 8080...'));