报错:vue项目:Multiple assets emit different content to the same filename index.html

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

报错翻译:多个资产发出不同的内容到相同的文件名index.html

原因有以下两个可能:

第一:检查文件路径  vue项目路径有中文 有可能会报错

第二:在脚手架进行创建项目的时候,有关多个文件名重名

解决:

1.ctrl+c暂停项目运行

2.public目录下 将index.html后缀修改为 index.ejs

3.node_nodules/webpack/bin/webpack.js 前几行中加入  html: { template: './src/index.ejs' }

4.npm run serve


版权声明:本文为Ben_boba原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。