Hi everyone,
I have a question regarding imagemin. I have 2 folders on a different level. Is it possible to optimize more than one folder?
For example now i have this setup:
imagemin: {
jpg: {
options: {
optimizationLevel: 5
},
files: [
{
expand: true,
cwd: 'images/',
src: ['*/.jpg'],
dest: 'images/',
ext: '.jpg'
}
]
},
png: {
options: {
optimizationLevel: 5
},
files: [
{
expand: true,
cwd: 'images/',
src: ['*/.png'],
dest: 'images/',
ext: '.png'
}
]
}
}
Can I do something like:
{
expand: true,
cwd: 'images/', '../../images/'
src: ['*/.jpg'],
dest: 'images/', '../../images'
ext: '.jpg'
}
Hi everyone, I have a question regarding imagemin. I have 2 folders on a different level. Is it possible to optimize more than one folder? For example now i have this setup: imagemin: { jpg: { options: { optimizationLevel: 5 }, files: [ { expand: true, cwd: 'images/', src: ['*/.jpg'], dest: 'images/', ext: '.jpg' } ] }, png: { options: { optimizationLevel: 5 }, files: [ { expand: true, cwd: 'images/', src: ['*/.png'], dest: 'images/', ext: '.png' } ] } }
Can I do something like: { expand: true, cwd: 'images/', '../../images/' src: ['*/.jpg'], dest: 'images/', '../../images' ext: '.jpg' }