spa-server
spa-server copied to clipboard
how to use Content-Encoding:gzip
how to use Content-Encoding:gzip such as
const serverFactory = require('spa-server');
const port = process.env.PORT || 7200
const server = serverFactory.create({
path: './dist',
port: port,
fallback: '/index.html'
});
//gzip css js img ???
server.start();