From 5860dfb85fa165957794e77aeb045f4819245a40 Mon Sep 17 00:00:00 2001 From: sunnie <406803045@qq.com> Date: Wed, 20 May 2020 15:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=20IS=5FPROD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 1a11390..e178510 100644 --- a/vue.config.js +++ b/vue.config.js @@ -41,7 +41,7 @@ module.exports = { // publicPath: '/app/', //署应用包时的基本 URL。 vue-router history模式使用 outputDir: 'dist', // 生产环境构建文件的目录 assetsDir: 'static', // outputDir的静态资源(js、css、img、fonts)目录 - lintOnSave: process.env.NODE_ENV !== IS_PROD, + lintOnSave: !IS_PROD, productionSourceMap: false, // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 devServer: { port: 9020, // 端口