Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

crossorigin='crossorigin' issue on fonts #116

Description

@VasilikiLoukoumi

Hello, I used the plugin to preload some font files in the document head, but I see the attribute crossorigin has the value 'crossorigin'. Am I doing something wrong?
This is what I am using:
new PreloadWebpackPlugin({ rel: 'preload', as(entry) { if (/\.(woff|woff2)$/.test(entry)) return 'font'; }, fileWhitelist: [/\.(woff|woff2)$/], include: 'allAssets' })
How can I fix this? Any help is appreciated.

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