spa-server icon indicating copy to clipboard operation
spa-server copied to clipboard

how to use Content-Encoding:gzip

Open jackieli123723 opened this issue 7 years ago • 0 comments

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(); 

jackieli123723 avatar Jan 18 '18 04:01 jackieli123723