From 4166021ba623b44f6f9c717cab4b14472ae9e5a9 Mon Sep 17 00:00:00 2001 From: Roel Nieskens Date: Fri, 29 Nov 2024 15:51:29 +0100 Subject: [PATCH] Update the Vue config As told by the warning in the console, and the Vue docs. Looks useful. --- vue.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vue.config.js b/vue.config.js index 12e423b..9cb61fc 100644 --- a/vue.config.js +++ b/vue.config.js @@ -18,6 +18,16 @@ module.exports = { symlinks: false, // npm link }, }, + chainWebpack: (config) => { + config.plugin("define").tap((definitions) => { + Object.assign(definitions[0], { + __VUE_OPTIONS_API__: "true", + __VUE_PROD_DEVTOOLS__: "false", + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false", + }); + return definitions; + }); + }, // Temporary beta build stuff: // publicPath: "/beta" };