From 1e4e0552c5e3caf11f68bd5a64c817cd67706136 Mon Sep 17 00:00:00 2001 From: yl <531591005@qq.com> Date: Sun, 12 Mar 2023 00:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5eslint=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vue.config.js b/vue.config.js index c4f98cd..2297836 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,9 +5,7 @@ const defaultSettings = require('./src/settings.js') function resolve(dir) { return path.join(__dirname, dir) } -module.exports = { - lintOnSave: false // 修改成false 就是不检查了 -} + const name = defaultSettings.title || 'vue Admin Template' // page title // If your port is set to 80, @@ -29,7 +27,7 @@ module.exports = { publicPath: '/', outputDir: 'dist', assetsDir: 'static', - lintOnSave: process.env.NODE_ENV === 'development', + lintOnSave: false,// process.env.NODE_ENV === 'development', productionSourceMap: false, devServer: { port: port,