Yeaoman Grunt imagemin致命错误:无法读取未定义的属性“内容” [英] Yeaoman Grunt imagemin Fatal error: Cannot read property 'contents' of undefined

查看:328
本文介绍了Yeaoman Grunt imagemin致命错误:无法读取未定义的属性“内容”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当运行 grunt build 时,即使使用干净的Yeoman角度构建, yo角度不管,我都会继续获取。


警告:运行imagemin:dist(imagemin)任务

致命错误:无法读取未定义的属性'contents'


解决方案

只需更新grunt-contrib- imagemin版本。



例如:grunt-contrib-imagemin:^ 0.9.2





grunt-contrib-imagemin:^ 1.0.0 code>



它适合我。


I keep on getting when running grunt build even with a clean Yeoman angular build: yo angular whatever.

Warning: Running "imagemin:dist" (imagemin) task

Fatal error: Cannot read property 'contents' of undefined

解决方案

just update your grunt-contrib-imagemin version.

Ex: "grunt-contrib-imagemin": "^0.9.2"

to

"grunt-contrib-imagemin": "^1.0.0"

it's work for me.

这篇关于Yeaoman Grunt imagemin致命错误:无法读取未定义的属性“内容”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆