Skip to content
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

Loading two fonts with one class gives an error #4

Open
jonathanstegall opened this issue Feb 5, 2020 · 0 comments
Open

Loading two fonts with one class gives an error #4

jonathanstegall opened this issue Feb 5, 2020 · 0 comments

Comments

@jonathanstegall
Copy link

Using this code:

.pipe(
  postcss([
    foftLoadedClasses({
      groups: [
      {
        families: ["ff-meta-serif-web-pro", "ff-meta-web-pro"],
        classNames: ["fonts-loaded"]
      }
    ]
    }) // font loading
  ])
)

gives an error:

Message:
Cannot read property 'split' of undefined
Details:
fileName: style.css
domainEmitter: [object Object]
domainThrown: false

But when I use only one font, it works fine:

.pipe(
  postcss([
    foftLoadedClasses({
      groups: [
      {
        families: ["ff-meta-serif-web-pro"],
        classNames: ["fonts-loaded"]
      }
    ]
    }) // font loading
  ])
)

Am I misunderstanding the syntax for multiple families?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant