Open ZeeLyn opened 1 year ago
在 webpack 上打包时,需要自己拷贝 woff2.wasm,然后 初始化时传入 下载地址:
woff2.init(wasmUrl).then(() => {
// read
let font = Font.create(buffer, {
type: 'woff2'
});
// write
font.write({type: 'woff2'});
});
是在编译的时候就报错,能否给一个示例
`These dependencies were not found:
webpack打包报错