UNPKG

server

Version:

A modern and powerful server for Node.js

17 lines (14 loc) 353 B
const modern = require('../../src/modern'); const compress = require('compression'); module.exports = { name: 'compress', options: { __root: 'compress', compress: { default: {}, type: Object } }, // The whole plugin won't be loaded if the option is false before: ctx => modern(compress(ctx.options.compress))(ctx) };