From e4faef26944695540c3f8351dbc9876688e0daca Mon Sep 17 00:00:00 2001 From: fangxiang Date: Tue, 10 Jan 2023 10:05:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8gzip=E5=8E=8B=E7=BC=A9,?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E5=8F=91=E5=B8=83=E7=89=88=E6=9C=AC=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=8E=A7=E5=88=B6=E5=8F=B0=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quasar.conf.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/quasar.conf.js b/quasar.conf.js index 54c6d0a..0486640 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -41,6 +41,11 @@ module.exports = configure(function (ctx) { // Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build build: { vueRouterMode: "hash", // available values: 'hash', 'history' + uglifyOptions: { + compress: { + drop_console: true, + }, + }, // transpile: false, @@ -52,7 +57,7 @@ module.exports = configure(function (ctx) { // rtl: true, // https://v2.quasar.dev/options/rtl-support // preloadChunks: true, // showProgress: false, - // gzip: true, + gzip: true, // analyze: true, // Options below are automatically set depending on the env, set them if you want to override