Команда grunt imagemin
выводит следующее в случайный файл.
Fatal error: ENOENT, no such file or directory 'app/public/assets/img/epg/recordseries.png'
Что смешно в том, что каждый раз, когда я снова запускаю команду grunt imagemin, ей удается обработать еще несколько файлов и заканчивать их выдачей одной и той же ошибки о другом файле.
Я использую
node v0.10.24
npm 1.3.21
[email protected]
[email protected] node_modules/grunt-contrib-imagemin
+-- [email protected]
+-- [email protected]
+-- [email protected] ([email protected], [email protected], [email protected])
+-- [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Вот моя конфигурация grunt для задачи imagemin
:
grunt.config('imagemin', {
options: {
optimizationLevel: 3, // 0 to 7, default =7)
// pngquant: true
},
dynamic: { // Multiple target
files: [{
expand: true, // Enable dynamic expansion
cwd: '<%= context.source %>/assets/img/', // equal to app/wesource/assets/img/
src: ['!**/*-'+arrayToRegexStr(platformIgnoreList)+'**', '**/*.{png,jpg,jpeg,gif}'], // Actual patterns to match //
dest: '<%= context.public %>/assets/img/' // equal to app/public/assets/img/
}]
}
});