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
|
@@ -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.
|
|
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
|
-
|
|
141
|
+
webpackProdConfig.plugins.push(new BundleAnalyzerPlugin());
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
return webpackProdConfig;
|