refactor: http启用压缩,前端打包去掉js.map
This commit is contained in:
parent
2bcdc0ab06
commit
5c07cdeee4
|
@ -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
|
||||
|
|
|
@ -5,7 +5,7 @@ function resolve(dir) {
|
|||
}
|
||||
|
||||
module.exports = {
|
||||
productionSourceMap: true,
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
port: 8080,
|
||||
proxy: {
|
||||
|
|
Loading…
Reference in New Issue