Closed HAKASHUN closed 9 years ago
色々手間になっちゃう?かもなのでgruntタスク作ってみることにする。
画像があるかをチェックするgruntタスク作った。 https://github.com/HAKASHUN/grunt-file-exist
grunt.initConfig({
file_exist: {
options: {
output: 'reports/log.txt' //Where the log is output.
},
your_target: {
options: {
patterns: ['l.png', 'm.png', 's.png']
},
src: [
'img/thumbs/*/'
]
},
},
})
あるべきパターンがないフォルダ情報、画像情報などはログファイルを出力するようにしました。
条件