Skip to content

Loading two fonts with one class gives an error #4

@jonathanstegall

Description

@jonathanstegall

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions