From 04097ea1a34773a9f93f6fd11a496e317d1f48be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Wed, 3 Apr 2024 19:00:20 +0000 Subject: [PATCH] fix vue cli-service feature flag warning --- ui/vue.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui/vue.config.js b/ui/vue.config.js index 75ec838..9229531 100644 --- a/ui/vue.config.js +++ b/ui/vue.config.js @@ -1,4 +1,5 @@ const { defineConfig } = require("@vue/cli-service"); +const webpack = require("webpack"); module.exports = defineConfig({ transpileDependencies: true, @@ -11,4 +12,14 @@ module.exports = defineConfig({ title: "Kalender-Gewinnspiel", }, }, + // https://stackoverflow.com/a/77765007 + configureWebpack: { + plugins: [ + new webpack.DefinePlugin({ + // Vue CLI is in maintenance mode, and probably won't merge my PR to fix this in their tooling + // https://github.com/vuejs/vue-cli/pull/7443 + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false", + }), + ], + }, });