mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-06-17 13:15:00 +02:00
17 lines
353 B
JavaScript
17 lines
353 B
JavaScript
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)
|
|
};
|