mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
16
node_modules/server/plugins/compress/index.js
generated
vendored
Normal file
16
node_modules/server/plugins/compress/index.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
};
|
Reference in New Issue
Block a user