akfun 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akfun",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -308,7 +308,7 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
308
308
  // 判断是否有自定义plugins
309
309
  if (curWebpackConfig.plugins && Array.isArray(curWebpackConfig.plugins)) {
310
310
  // 添加自定义webpack插件
311
- webpackConfig.plugins.concat(curWebpackConfig.plugins);
311
+ webpackConfig.plugins.push(...curWebpackConfig.plugins);
312
312
  }
313
313
 
314
314
  return webpackConfig;
@@ -138,7 +138,7 @@ module.exports = (akfunConfig) => {
138
138
  }
139
139
 
140
140
  if (curEnvConfig.bundleAnalyzerReport) {
141
- webpackConfig.plugins.push(...curWebpackConfig.plugins);
141
+ webpackProdConfig.plugins.push(new BundleAnalyzerPlugin());
142
142
  }
143
143
 
144
144
  return webpackProdConfig;