开启gzip压缩
# use npm
$ npm i egg-plugin-gzip --save
# use pnpm
$ pnpm add egg-plugin-gzip
# use yarn
$ yarn add egg-plugin-gzip
// {app_root}/config/plugin.js
exports.gzip = {
enable: true,
package: 'egg-plugin-gzip'
}
// {app_root}/config/config.default.js
exports.gzip = {
threshold: 256
}
Please open an issue here.