refactor: http启用压缩,前端打包去掉js.map

This commit is contained in:
Captain.B 2021-06-11 16:19:04 +08:00 committed by 刘瑞斌
parent 2bcdc0ab06
commit 5c07cdeee4
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -5,7 +5,7 @@ function resolve(dir) {
}
module.exports = {
productionSourceMap: true,
productionSourceMap: false,
devServer: {
port: 8080,
proxy: {