I keep getting grunt build when I run it even with a clean Yeoman angular build: yo angular whatever .
grunt build
yo angular whatever
Warning: completing the "imagemin: dist" (imagemin) jobFatal error: cannot read the contents of the "content" undefined
Warning: completing the "imagemin: dist" (imagemin) job
Fatal error: cannot read the contents of the "content" undefined
just upgrade your version with grunt-contrib-imagemin.
Example: "grunt-contrib-imagemin": "^0.9.2"
"grunt-contrib-imagemin": "^0.9.2"
to
"grunt-contrib-imagemin": "^1.0.0"
he works for me.
I had to lower my imagination, and now everything works.
npm cache clean && npm install grunt-contrib-imagemin@0.9.1
I changed this line in Gruntfile.js:
src: '{,*/}*.{png,jpg,jpeg,gif}',
to this line:
src: '[*/*.{png,jpg,jpeg,gif,svg}]'
Source: https://habr.com/ru/post/1240432/More articles:Agent cannot be found with the following features: grunt - node.jsCRM 2016 oDetails expand on collection - odataAEM cold standby TarMK Not working - jackrabbitAlign the item from the bottom within the flexbox without using the position: absolute - htmlConnecting to a MySql database using SSH tunneling on a remote host with a specific mysql host - javahow to make less or equal and more than in a django filter? - pythonWhy is the Python multiprocessor running sequentially? - pythonHow to force npm to use jquery 2.1.1 - jqueryWhat control events start and end the UIButton backlight state - iosHow to go to the previous page using Cassandra manual paging - javascriptAll Articles