启用gzip压缩,编译发布版本关闭控制台输出
This commit is contained in:
parent
c44a2076f3
commit
e4faef2694
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue