Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack下编译报错 #109

Open
ZeeLyn opened this issue Apr 21, 2023 · 4 comments
Open

webpack下编译报错 #109

ZeeLyn opened this issue Apr 21, 2023 · 4 comments

Comments

@ZeeLyn
Copy link

ZeeLyn commented Apr 21, 2023

image

@kekee000
Copy link
Contributor

woff2.wasm 是采用动态方式引入的,需要在 webpack 打包时忽略这个文件,然后拷贝到 dist 代码中。

@coderi521
Copy link

我在一个react项目中安装fontmin,引入的时候也报这个错,有什么好的解法嘛

@ZeeLyn
Copy link
Author

ZeeLyn commented Aug 14, 2024

我在一个react项目中安装fontmin,引入的时候也报这个错,有什么好的解法嘛

@coderi521 可以看下我这个仓库,fontmin只支持ttf格式的字体,我这个可以支持其他字体文件,使用的opentype.js这个库

@coderi521
Copy link

@ZeeLyn 看着不太满足我现在的场景,我是希望可以以npm的方式安装在我的项目中,在项目中处理字体文件&&拿到字体文件去做个性化处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants