您好,欢迎来到画鸵萌宠网。
搜索
您的当前位置:首页亲测有效-Conflict: Multiple assets emit different content to the same filename index.html报错解决方案

亲测有效-Conflict: Multiple assets emit different content to the same filename index.html报错解决方案

来源:画鸵萌宠网

问题:当使用vue-cli(脚手架)创建项目后,运行serve项目过程中,出现Conflict: Multiple assets emit different content to the same filename index.html的报错.

1.第一步:外层大文件夹是public文件夹,把里面的index.html重命名为index.ejs

index.ejs

index.html在public的文件夹下:如下图修改

2.第二步:先找到node_nodules外层大文件夹,在node_nodules/webpack/bin/webpack.js中最前面加入  html: { template: './src/index.ejs' }

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

3. 第三步:输入npm run serve运行项目,就ok楼~

npm run serve

点击下面链接即可跳转到浏览器:

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo8.com 版权所有 湘ICP备2023022238号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务