vuejs / vue-cli

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

Add programatic API to edit html #7012

Open evenstensberg opened 2 years ago

evenstensberg commented 2 years ago

What problem does this feature solve?

In order to edit html, one now needs to edit it manually using JS in app.vue. Alternatively in server.js. It would be nice if vue cli lets the user override index.html page to edit things like page title, language in html (for a11y), or fav.ico

What does the proposed API look like?

An own property in vue.config with overridable html

LinusBorg commented 2 years ago

Are you aware of this?

https://cli.vuejs.org/guide/html-and-static-assets.html#interpolation

If so, what exactly are you missing and are asking for here? can you give a real life use case example?

evenstensberg commented 2 years ago

no, I wanna edit the boilerplate html directly

tu6ge commented 2 years ago

There is a usage scenario. The tauri framework needs to manually introduce Vue devtool, so you need to edit the index.html, so this API is needed in vue-cli-plugin-tauri