grunt-postcss
grunt-postcss copied to clipboard
cwd takes no effect on dest
Hi,
I'm not sure if you want it that way, or if it's a bug.
In my project I got src files in web/assets/css and web/assets/js for css and javascript respectivly.
For doing so, I need the following configuration in order to get a 1:1 gzip compressed output:
compress: {
main: {
options: {
mode: "gzip",
date: new Date()
},
files: [
{
expand: true,
cwd: "web/assets/css",
src: [ "*.min.css" ],
dest: "web/assets/css/",
ext: ".min.gz.css"
},
{
expand: true,
cwd: "web/assets/js",
src: [ "*.min.js" ],
dest: "web/assets/js/",
ext: ".min.gz.js"
}
]
}
}
So, please fix it or mention it in the documentation.
Hi @alpham8 I just randomly came across this issue, and I do believe you've posted it in the wrong repo. Just a heads up.
ping