I'm trying to use grunt cssmin on two files: style.css and ie.css (without concatenating them).
For the moment I have this in my grunt.js:
cssmin: {
dist: {
src: ['<banner:meta.wpblock>', '../style.css'],
dest: '../style.css'
}
},
Is it possible to specify several src (../style.css and ../ie.css) and several dest (../style.css and ../ie.css)?
Currently no, although when grunt 0.4 is released and the task is updated accordingly, you'll be able to do:
cssmin: {
dist: {
files: {
'../style.css': ['<banner:meta.wpblock>', '../style.css'],
'../style.css': ['<banner:meta.wpblock>', '../style.css']
}
}
},
I think you could use grunt's compact format to do this.
For example:
cssmin: {
'production/css/style.css': ['<banner:meta.wpblock>', 'css/style.css'],
'production/css/ie.css': ['<banner:meta.wpblock>', 'css/ie.css']
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With