fex-team / fis3

FIS3
http://fis.baidu.com
BSD 2-Clause "Simplified" License
2.79k stars 693 forks source link

有个老系统还在用fis3,刚刚升级就_handle.Pngquant is not a constructor 了 #1301

Open suinia opened 4 years ago

suinia commented 4 years ago

坑啊。

oxUnd commented 4 years ago

node 版本升级一下,升级到 node 10 看看,这个问题我们看看是个啥问题;

suinia notifications@github.com 于2019年12月27日周五 下午6:03写道:

坑啊。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fex-team/fis3/issues/1301?email_source=notifications&email_token=AAE2DG7H64QLGHOJ2IORWQ3Q2XHINA5CNFSM4J7ZQ2ZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IC2ZLTQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE2DG62WC4SHOMR2R2XPW3Q2XHINANCNFSM4J7ZQ2ZA .

JEFF-happy commented 4 years ago

// 开启图片压缩 fis.match('.png', { optimizer: fis.plugin('png-compressor', { type: 'pngquant' }) }); 把这个关掉 就不报错了 然后重新安装压缩插件 npm install fis3-optimizer-img-compressor 配置改成 fis.match('.png', { optimizer: fis.plugin('img-compressor') });