vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

怎么禁止vue.config.js默认的HtmlWebpackPlugin,自己在configureWebpack.plugin中配置HtmlWebpackPlugin? #7446

Open Minori-ty opened 10 months ago

Minori-ty commented 10 months ago

Version

5.0.8

Reproduction link

github.com

Environment info

windows11
node v20.10.0
npm  v10.3.0

Steps to reproduce

npm install

npm run build

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

What is expected?

我希望禁掉vue-cli默认的HtmlWebpackPlugin,然后自己通过configureWebpack的plugin,进行new HtmlWebpackPlugin的自定义化。

不希望chainWebpack的方式来修改HtmlWebpackPlugin配置。只想通过configureWebpack来配置

What is actually happening?

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