akfun 3.2.5 → 3.2.6

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.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "前端脚手架:支持Vue技术栈和react技术栈",
5
5
  "keywords": [
6
6
  "前端工程",
@@ -311,5 +311,11 @@ module.exports = (_curEnvConfig, _akfunConfig) => {
311
311
  webpackConfig.plugins.push(...curWebpackConfig.plugins);
312
312
  }
313
313
 
314
+ // 判断是否有自定义loader
315
+ if (curWebpackConfig.moduleRules && Array.isArray(curWebpackConfig.moduleRules)) {
316
+ // 添加自定义自定义loader
317
+ webpackConfig.module.rules.push(...curWebpackConfig.moduleRules);
318
+ }
319
+
314
320
  return webpackConfig;
315
321
  };