-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updateMeta removes original meta charset and viewport #2332
Comments
Thanks for the report, introduced in #2164 . Not only those two meta tags, it will remove all meta tags in the html template. |
I literally started using VuePress earlier today and quickly discovered that some ...
head: [
['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1' }],
['meta', { charset: 'utf-8' }],
],
... And by providing a customized <!DOCTYPE html>
<html lang="{{ lang }}">
<head>
<title>{{ title }}</title>
<meta name="generator" content="VuePress {{ version }}">
{{{ userHeadTags }}}
{{{ pageMeta }}}
{{{ renderResourceHints() }}}
{{{ renderStyles() }}}
</head>
<body>
<!--vue-ssr-outlet-->
{{{ renderScripts() }}}
</body>
</html> As the documentation states, the |
Bug report
Steps to reproduce
open a page.
What is expected?
following meta tags which original index.html contains are shown.
What is actually happening?
the tags are removed by updateMeta method.
Other relevant information
The text was updated successfully, but these errors were encountered: