UNPKG

nova-frontend

Version:

Nova is an alternative to all those gigantic front-end frameworks, that often do more than is necessary when it comes to building simple UIs. Pure Vanilla Javascript is performance-wise the best way to build your front-end in a SPA, but it can be hard to

19 lines (14 loc) 387 B
const express = require('express'); const path = require('path'); const { StaticCompiler } = require('./nova.js'); const app = express(); app.use(express.static('build')); (async () => { const compiler = new StaticCompiler([], '', { isBuilding: true }); await compiler.watch(); // console.log(compiler) })() app.get('*', (req, res) => { res.send('helo') }) app.listen(5001);