From 2aeb60d0a9b8d69de838204d907fb7ea3e9a9da8 Mon Sep 17 00:00:00 2001 From: MengYX Date: Wed, 4 Mar 2020 09:38:30 +0800 Subject: [PATCH 1/2] Update CI --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 66e7384..895adc3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,6 +45,8 @@ steps: secret_key: from_secret: aws_secret_access_key source: dist/**/* + exclude: + - "**/*.map" strip_prefix: dist/ target: /public path_style: true From a72804544f32e449bdd0ec9d60003eca3c5f8d47 Mon Sep 17 00:00:00 2001 From: MengYX Date: Wed, 4 Mar 2020 09:51:34 +0800 Subject: [PATCH 2/2] Remove Source Map in production --- .drone.yml | 2 -- vue.config.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 895adc3..66e7384 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,8 +45,6 @@ steps: secret_key: from_secret: aws_secret_access_key source: dist/**/* - exclude: - - "**/*.map" strip_prefix: dist/ target: /public path_style: true diff --git a/vue.config.js b/vue.config.js index bbe992c..ca68c15 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,6 +1,6 @@ module.exports = { publicPath: '', - productionSourceMap: true, + productionSourceMap: false, pwa: { workboxOptions: { skipWaiting: true