hz
hz
是不是用法问题?感觉options串了
In webpack 5.x, the `compiler.hooks` can not add any property into it.  So, when get the `hardSourceCacheFactory` property in `tapable.hooks`, it returns undefined: 
Same error: https://github.com/AnomalyInnovations/serverless-bundle/issues/178
最好是用服务器(比如nginx)实现gzip,代码还是不要gzip了
我估计是compression-webpack-plugin先于webpack-theme-color-replacer执行了,导致获取到的是二进制压缩后的数据。这可能没法兼容了
我用webpack5用了几个项目,未发现报错。如果有问题另外再提issue吧,附上重现办法
感谢 @linpengteng !问题解决了。使用1.4.4版本
机制不兼容 5953107 ***@***.*** ------------------ 原始邮件 ------------------ 发件人: ***@***.***>; 发送时间: 2024年3月19日(星期二) 上午10:17 收件人: ***@***.***>; 抄送: ***@***.***>; "State ***@***.***>; 主题: Re: [hzsrc/webpack-theme-color-replacer] 与compression-webpack-plugin组件不兼容 (Issue #110) 所以 如何解决呢 — Reply to this email directly,...
This will help: https://github.com/bubkoo/html-to-image/pull/473
Use pixelRatio=2 or 3