Skip to content

Commit 26671e8

Browse files
committed
fix build bug
1 parent 283598e commit 26671e8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

webpack.config.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ const config = {
6767

6868
module.exports = (env, argv) => {
6969
if (argv.mode === 'production') {
70-
config.minimize = true
71-
config.minimizer = [
72-
new CssMinimizerPlugin()
73-
]
74-
config.splitChunks = {
75-
chunks: 'all'
70+
config.optimization = {
71+
minimize: true,
72+
minimizer: [
73+
new CssMinimizerPlugin()
74+
],
75+
splitChunks: {
76+
chunks: 'all'
77+
}
7678
}
7779
}
7880

0 commit comments

Comments
 (0)