Skip to content

Commit

Permalink
Merge pull request #73 from rmotitsuki/fix-vue3-prod-script
Browse files Browse the repository at this point in the history
Fix vue3 webpack prod script
  • Loading branch information
rmotitsuki authored Aug 5, 2024
2 parents 6c01356 + 77cf6e3 commit cf640a2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]
Expand Down

0 comments on commit cf640a2

Please sign in to comment.