From faae781f42ad08ea9af7c8665273ee96b2ca06d0 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 10 Oct 2023 15:24:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vue.config.js b/vue.config.js index dcee3d0c..ee9810d2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,5 @@ const path = require('path') +const webpack = require('webpack') function resolve (dir) { return path.join(__dirname, dir) } @@ -15,6 +16,9 @@ module.exports = { chainWebpack: (config) => { config.resolve.alias // 路径别名 .set('@', resolve('./src')) + config.plugin('webpack.DefinePlugin').use(new webpack.DefinePlugin({ + __INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false) + })) }, lintOnSave: true, devServer: {