Lete114 / hexo-minify

Hexo-minify is a Hexo compression plug-in that compresses HTML, CSS, JS, Font and Image(jpg,png,gif,webp,svg) (Hexo-minify 是一款 Hexo 压缩插件,它可以压缩 HTML、CSS、JS、Font、Image(jpg,png,gif,webp,svg))
37 stars 1 forks source link

imagemin 已停止维护 #6

Open Crystal-RainSlide opened 1 year ago

Crystal-RainSlide commented 1 year ago

https://github.com/imagemin/imagemin

目前已经有警告:

warning hexo-minify > imagemin-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning hexo-minify > fontmin-spider > fontmin > buffer-to-vinyl > uuid@2.0.3: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
warning hexo-minify > imagemin-jpegtran > exec-buffer > tempfile > uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

考虑到 imagemin 缺乏同等级替代品,个人比较建议开一个大版本,分开压缩代码和压缩图片的功能,把 imagemin 停止维护的问题先容纳在后者那边。

Lete114 commented 1 year ago

imagemin 作者在 GitHub 上依旧很活跃,可能 imagemin 已经很稳定了,所以不会有什么重大更新,并且作者维护着很多开源项目,因该是比较忙

此外以上警告并未造成严重影响,且目前没有什么比较好的替代品

Lete114 commented 1 year ago

分开压缩代码和压缩图片的功能

不会分开,不使用关闭即可