aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-02-16 03:27:45 +0100
committerGitHub <noreply@github.com>2024-02-16 02:27:45 +0000
commite9a1ffba2c294f74d985870e9b7b5b07e9000857 (patch)
tree3e433b16ecd4aa49091bd9c2300807abb3668701 /webpack.config.js
parent8f9c9d3a5fa185f4a61f71e49f15b6d5e611b44a (diff)
downloadgitea-e9a1ffba2c294f74d985870e9b7b5b07e9000857.tar.gz
gitea-e9a1ffba2c294f74d985870e9b7b5b07e9000857.zip
Avoid vue warning in dev mode (#29188)
`vue` currently outputs a warning for this undefined variable during development, which is apparently caused by a bug in `vue-cli`. Workaround by setting this variable. Ref: https://github.com/vuejs/vue-cli/pull/7443 Ref: https://stackoverflow.com/a/77765007/808699
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 16afa0ff9c..8b3b8477c1 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -172,6 +172,7 @@ export default {
new DefinePlugin({
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
+ __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // https://github.com/vuejs/vue-cli/pull/7443
}),
new VueLoaderPlugin(),
new MiniCssExtractPlugin({