From 848875bd578d78d03651f8768a6c5ac5b7fd64ae Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Wed, 1 Apr 2020 14:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=ADgzip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/config/skinCode/bejing_01.js | 2 +- vue.config.js | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/jmapNew/config/skinCode/bejing_01.js b/src/jmapNew/config/skinCode/bejing_01.js index c7672c88e..7ba21df8a 100644 --- a/src/jmapNew/config/skinCode/bejing_01.js +++ b/src/jmapNew/config/skinCode/bejing_01.js @@ -285,7 +285,7 @@ class SkinCode extends defaultStyle { fontWeight: 'normal' }, stopTime: { // 停站时间 - offset: { x: -8, y: 3 }, // 运行时间偏移量 + offset: { x: -40, y: 10 }, // 运行时间偏移量 textColor: '#FFFFFF', // 停站时间字体颜色 textFontSize: 8 }, diff --git a/vue.config.js b/vue.config.js index fa3c08d41..2eb687b38 100644 --- a/vue.config.js +++ b/vue.config.js @@ -86,16 +86,16 @@ module.exports = { // // 为开发环境修改配置... // config.mode = 'development'; // } - if (process.env.NODE_ENV !== 'development') { - config.plugins.push(new CompressionPlugin({ - filename: '[path].gz[query]', - algorithm: 'gzip', - test:/\.js$|\.html$|.\css/, // 匹配文件名 - threshold: 10240, // 对超过10k的数据压缩 - minRatio: 0.8, // 只有压缩好这个比率的资产才能被处理 - deleteOriginalAssets: true - })); - } + // if (process.env.NODE_ENV !== 'development') { + // config.plugins.push(new CompressionPlugin({ + // filename: '[path].gz[query]', + // algorithm: 'gzip', + // test:/\.js$|\.html$|.\css/, // 匹配文件名 + // threshold: 10240, // 对超过10k的数据压缩 + // minRatio: 0.8, // 只有压缩好这个比率的资产才能被处理 + // deleteOriginalAssets: true + // })); + // } config.name = name; config.resolve = { extensions: ['.js', '.vue', '.json'],