const pushstate = require('pushstate-server');
const server = pushstate.start({
port: 2999,
directories: ['./build']
});
/* some time later */
server.close()
Useful for something I'm building. Otherwise the only way to quit the server is to send an INT (I think...)
This is so you can call:
Useful for something I'm building. Otherwise the only way to quit the server is to send an
INT
(I think...)