From 77cf6e31f3b211d75338e6ba3c684ec392de8fe6 Mon Sep 17 00:00:00 2001 From: rmotitsuki Date: Wed, 31 Jul 2024 13:50:55 -0300 Subject: [PATCH] Fix vue3 webpack prod script --- webpack/webpack.prod.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index 10e962e..aaf3c07 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -12,10 +12,16 @@ module.exports = merge(common,{ new webpack.DefinePlugin({ 'process.env': { NODE_ENV: '"production"' - } + }, + // explicity vue3 options + // https://vuejs.org/api/compile-time-flags.html + __VUE_OPTIONS_API__: 'true', + __VUE_PROD_DEVTOOLS__: 'false', + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false' }), new webpack.LoaderOptionsPlugin({ - minimize: true + minimize: true, + debug: false }), new CleanWebpackPlugin(), ]