babel.config.js 与 webpack.config.js
时间: 2023-10-28 07:59:08 浏览: 186
详解node.js中的npm和webpack配置方法
babel.config.js 与 webpack.config.js 之间的区别是什么?
babel.config.js 是一个项目级别的配置文件,用于配置 Babel 的转译规则。它的加载规则是按目录加载的,只针对项目自身的代码进行配置。一般情况下,存在 babel.config.js 文件时,不会再去执行 .babelrc 中的配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [webpack.base.conf.js和 webpack.config.js有什么区别](https://blog.csdn.net/qq_42044542/article/details/129885022)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Vue/React项目中babel.config.js 和 .babelrc文件对比](https://blog.csdn.net/duansamve/article/details/122644645)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文