grunt-postcss icon indicating copy to clipboard operation
grunt-postcss copied to clipboard

cwd takes no effect on dest

Open alpham8 opened this issue 9 years ago • 2 comments

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.

alpham8 avatar Jan 29 '17 20:01 alpham8

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.

Kosai106 avatar Mar 27 '17 03:03 Kosai106

ping

alpham8 avatar Apr 26 '18 12:04 alpham8