Gatsby: Where is this extra viewport tag coming from? Is this a bug?

Created on 26 Mar 2020  路  2Comments  路  Source: gatsbyjs/gatsby

image

I have a very basic Gatsby site, using only react-helmet, not the Gatsby React Helmet plugin, as I want total control of my meta tags. Here is my Gatsby plugins list:

plugins: [
    `gatsby-plugin-sass`,
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: `images`,
        path: `${__dirname}/src/images`,
      },
    },
]

Something, somewhere, is sticking in the charset, viewport, and http-equiv into my documents and shouldn't be. Any ideas?

question or discussion

All 2 comments

These are part of the wrapper defined in html.js, and for varying reasons considered best practice.
If you want to change or remove these, take a look at Customizing html.js

Thank you for opening this!

As Arthur said we include those as they are considered best practice and necessary for every site. I wouldn't recommend changing those, however the linked doc would explain how to do it.

We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hobochild picture hobochild  路  3Comments

mikestopcontinues picture mikestopcontinues  路  3Comments

kalinchernev picture kalinchernev  路  3Comments

signalwerk picture signalwerk  路  3Comments

ghost picture ghost  路  3Comments