Closed IngwiePhoenix closed 9 years ago
Wow, such mistake.
Code was working correctly only when order of types
was same as order of fonts generation.
I fixed it now.
Seems fixed! :)
Ingwie@Ingwies-Macbook-Pro.local ~/W/f/test $ file build/*
build/2ddfc222221e40b522d3e4a87c58d6df-Octicons.ttf: TrueType font data
build/64218b3f12ced3b1c40984219fe97238-Octicons.eot: data
build/bf3348128669f5ef4f8405d22bf5a708-Octicons.svg: SVG Scalable Vector Graphics image
build/bundle.js: HTML document text
build/e74409b14842bdc432aae1eabcbf861f-Octicons.woff: data
I am almost done with my WebPack loader for generating webfonts using this module. However, when running my test, it turned out that, for some reason, the file contents got totally swapped and mixed up. Here is the "generated" config within the only source file of the module.
https://github.com/IngwiePhoenix/fontgen-loader/blob/master/index.js#L32-L43
And here is what happens:
I checked,
bundle.js
has the expected output. But the various font files, don't... Is there anything I am doing wrong in my code?