vue项目打包时开启gizp压缩,在 webpack.prod.conf.js 中将 asset: '[path].gz[query]' 改为 filename: '[path].gz[query]',compression-webpack-plugin 插件版本也要对应上。
评论