From 5c07cdeee422c46e0361f8cee8f0d821a823e0e9 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 11 Jun 2021 16:19:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20http=E5=90=AF=E7=94=A8=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=89=93=E5=8C=85=E5=8E=BB?= =?UTF-8?q?=E6=8E=89js.map?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/application.properties | 4 ++++ frontend/vue.config.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 8db6c07c47..eb18d32967 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -27,6 +27,10 @@ mybatis.configuration.map-underscore-to-camel-case=true logging.file.path=/opt/metersphere/logs/${spring.application.name} # view spring.mvc.throw-exception-if-no-handler-found=true +# 开启 gzip 压缩 +server.compression.enabled=true +server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css,text/javascript,image/jpeg +server.compression.min-response-size=2048 # flyway enable spring.flyway.enabled=true spring.flyway.baseline-on-migrate=true diff --git a/frontend/vue.config.js b/frontend/vue.config.js index 50c7cbf1b9..455ea04148 100644 --- a/frontend/vue.config.js +++ b/frontend/vue.config.js @@ -5,7 +5,7 @@ function resolve(dir) { } module.exports = { - productionSourceMap: true, + productionSourceMap: false, devServer: { port: 8080, proxy: {