Closed DevilSquirrel closed 1 year ago
destImg
should be dest
. Additionally, your task is named sprite:icons
, not sprite:src
when you run it from the CLI =/
sprite:{
icons:{
src: 'public/image/*.png',
dest: 'build/image/icons.png',
destCss: 'build/image/icons.css'
}
}
destImg
应该是dest
。此外,您的任务被命名为sprite:icons
,而不是sprite:src
当您从 CLI 运行它时=/sprite:{ icons:{ src: 'public/image/*.png', dest: 'build/image/icons.png', destCss: 'build/image/icons.css' } }
Change destImg to dest and the problem is solved. Thank you very much. I am reading a book and the configuration in the book is very old.
Full configuration:
pacage.json
I searched for a long time and couldn't find what was wrong. hope to get help thank you!