From 7729bf545efdd3cc3f0c1240dc9c1db923ec2c3f Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 13 Jun 2021 02:19:05 +0200 Subject: [PATCH] shut up some of dem vue warnings --- webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index aa5dbf3..8a04cd1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -163,7 +163,10 @@ const config = { }), new webpack.DefinePlugin({ 'process.env.BROWSER': JSON.stringify(process.env.BROWSER), - 'process.env.CHANNEL': JSON.stringify(process.env.CHANNEL) + 'process.env.CHANNEL': JSON.stringify(process.env.CHANNEL), + + '__VUE_OPTIONS_API__': true, + '__VUE_PROD_DEVTOOLS__': false }) ], optimization: { @@ -179,6 +182,9 @@ const config = { if (config.mode === 'production') { config.plugins = (config.plugins || []).concat([ new webpack.DefinePlugin({ + '__VUE_OPTIONS_API__': true, + '__VUE_PROD_DEVTOOLS__': false, + 'process.env': { NODE_ENV: '"production"', },