skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

Skypack breaks font files #137

Open mschaufelberger opened 3 years ago

mschaufelberger commented 3 years ago

The following font file, used for font icons, is broken on skypack.dev:

https://cdn.skypack.dev/@eclipse-scout/core@v10.0.45/res/fonts/scoutIcons.woff

Compare that e.g. to the version on unpkg.com:

https://unpkg.com/@eclipse-scout/core@v10.0.45/res/fonts/scoutIcons.woff

The version on unpkg is identical to the source file at GitHub:

https://github.com/eclipse/scout.rt/blob/10.0.45/eclipse-scout-core/res/fonts/scoutIcons.woff

The version on skypack.dev has all icons replaced with the Replacement Character � (U+FFFD, UTF-8 Hex EFBFBD).

Not only this specific font file in this specific version is affected, but all other (icon) font files in all versions of at least this module.

FredKSchott commented 3 years ago

Looks like an encoding issue, we may be incorrectly passing this through a utf8 encoding