学无先后,达者为师

网站首页 编程语言 正文

解决ERROR in Conflict: Multiple assets emit different content to the same filename index.html 的问题

作者:奇怪的点 更新时间: 2022-09-25 编程语言

报错ERROR in Conflict: Multiple assets emit different content to the same filename index.html

在这里插入图片描述

1、把项目目录的上一级目录改为英文,已解决

2、进入node_modules->webpack->bin->webpack.js后把下面这句代码加上

html: { template: './src/index.ejs' }

如图:
在这里插入图片描述

然后再把index.html重命名为index.ejs,已解决

原文链接:https://blog.csdn.net/lcc2001/article/details/127017075

栏目分类
最近更新