Closed revolter closed 3 years ago
It's calculated from the name
field in package.json
. For multi-page apps, it's the title
field in the page options (inside the pages
field).
pages
field of what object? Or, in what file? router/index.ts
?
It's explained here: https://cli.vuejs.org/config/#pages
If you use the vue-pwa plugin, then the name
is set within your site.webmanifest
file
Holy shit, two years have passed, and now you still can't change the title.
did we ever figure out how to change the title? Especially for a page that has route params like /product/:id where depending on the id, each page might have a different title?
All I want is to change my localhost300 title in my browser. Why is this so hard? Seriously vue?
While you are figuring this out, can you check vueuse npm package, there should be a hook to change your title.
On 9 Aug 2023, at 20:34, vtonu @.***> wrote:
All I want is to change my localhost300 title in my browser. Why is this so hard? Seriously vue?
— Reply to this email directly, view it on GitHub https://github.com/vuejs/vue-cli/issues/5199#issuecomment-1672029212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC7PWY5BTSZOYYOKNNNDPX3XUPQ2RANCNFSM4KXTT5WA. You are receiving this because you commented.
how the hell we remove the name key in package.json from the title
Version
4.2.2
Environment info
Steps to reproduce
Use this preset:
What is expected?
Maybe find a
*webpack*
file with atitle
key for which to change the value?What is actually happening?
The project is created with an
index.html
file containing<title><%= htmlWebpackPlugin.options.title %></title>
, but with no indication of where is thattitle
property defined.