didierfranc / gatsby-plugin-google-fonts

Bring Google Fonts to Gatsby https://www.gatsbyjs.org/
MIT License
88 stars 19 forks source link

Escape character in example breaks import #17

Open YoungiiJC opened 4 years ago

YoungiiJC commented 4 years ago

When importing weights for Nunito Sans, the escape character \ breaks the weights import.

module.exports = {
  plugins: [
    {
      resolve: `gatsby-plugin-google-fonts`,
      options: {
        fonts: [
          `Nunito Sans:\200,300,400,600,700,800,900` // escape character breaks import
          `Nunito Sans:200,300,400,600,700,800,900` // this works
        ],
      }
    }
  ]
}
tarikhamilton commented 4 years ago

That may be a typo, @YoungiiJC. You are escaping 2 in your code, not the :. I don't think escaping the colon is necessary, period.