启用gzip压缩,编译发布版本关闭控制台输出

This commit is contained in:
fangxiang 2023-01-10 10:05:58 +08:00
parent c44a2076f3
commit e4faef2694
1 changed files with 6 additions and 1 deletions

View File

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