Conflict: Multiple assets emit to the same filename 0.js
时间: 2023-11-12 19:55:36 浏览: 45
引用和是关于解决在给vue.config.js配置gzip压缩时出现的"Conflict: Multiple assets emit different content to the same filename"错误的。根据这些引用的内容,问题的解决方案是将filename配置项修改为 '[path][base].gz'。这样就可以解决这个错误了。引用提到了另一个和这个错误相关的问题,即在使用vue-cli创建项目后,使用npm run serve运行项目时出现"Conflict: Multiple assets emit different content to the same filename index.html"的错误。解决这个问题的方法是将index.html重命名为index.ejs,并在webpack配置文件中将html的template选项指定为'./src/index.ejs'。重新运行项目后,这个错误就会被解决掉了。所以,对于你的问题"Conflict: Multiple assets emit to the same filename 0.js",你可以尝试检查你的配置文件中的filename选项是否设置正确,并确保没有重复的文件名导致冲突。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Conflict: Multiple assets emit different content to the same filename static/js/.gz](https://blog.csdn.net/mmiaoChong/article/details/121138975)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Conflict: Multiple assets emit different content to the same filename index.html报错解决方案](https://blog.csdn.net/qq_57587705/article/details/124329493)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]