Add vue build feature flags

See https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
This commit is contained in:
timongh 2023-03-10 21:27:13 +08:00
parent ef51a17487
commit 841499d9ee

View File

@ -121,6 +121,8 @@ export const getDefaultConfig = (src = relativePath('src')): Configuration => {
webpackCompilationInfo: [relativePath('webpack/compilation-info'), 'compilationInfo'],
}),
new webpack.DefinePlugin({
__VUE_OPTIONS_API__: true,
__VUE_PROD_DEVTOOLS__: false,
webpackGitInfo: JSON.stringify(gitInfo),
}),
// new WebpackBar(),