Conflict: Multiple assets emit different content to the same filename index.html错误解决
在启动vue脚手架时出现以下错误:
大致意思是在启动vue项目时出现了相同文件名index.html
。可按以下方法修改:
- 修改项目目录下
node_modules--webpack--bin--webpack.js
文件,在文件上方添加如下内容:
html:{template:'./src/index.ejs'}
- 将项目
public
下index.html
的后缀名修改为ejs
:
- 再次启动,成功:
114)]
- 再次启动,成功: