Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

woff2 Support? #33

@skipjack

Description

@skipjack

In the readme it states:

A font file for WOF, EOT, TTF and WOFF2. Also SVG, if you want. But there is a trend of removal within browsers - you can see more on caniuse.

However, when I include woff2 in my list of types, like so:

module.exports = {
    fontName: 'icons',
    files: [ '../icons/*.svg' ],
    baseClass: 'icon',
    classPrefix: 'icon-',
    fixedWidth: true,
    types: [ 'woff', 'woff2' ]
}

I get an error:

ERROR in ../~/css-loader!../~/fontgen-loader!./icon.font.js Cannot read property 'deps' of undefined

Am I missing something? Is woff2 not how I should specify it?

Aside from this issue, this loader is super handy and I really appreciate your work on it! I'd be willing to submit a PR for some grammar fixes and cleanup in the README if you wouldn't mind...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions