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

File Processor

Open digitalkaoz opened this issue 8 years ago • 3 comments

hey @sergcen im interested in implementing a file-processor, to e.g. minify/optimize the to be processed image.

something like like this:

{
            url: "copy",
            assetsPath: "somepath",
            shrink: 8,
            fileProcessor: (content, file) => {
                return imagemin.buffer(content, {})
            }
}

as it is an async process i guess this module needs some massive async refactoring (im seeing an open PR, maybe this can be a starting point)

or do you have some other idea simpler idea for chaining in some image optimizations?!

are you interested in a PR?

digitalkaoz avatar Dec 15 '17 21:12 digitalkaoz

hi @digitalkaoz sure, i think it's will useful feature

sergcen avatar Dec 24 '17 16:12 sergcen

hi @sergcen ! this feature needed me. can i write PR ?

dkrnl avatar Jan 15 '18 08:01 dkrnl

@dkrnl go for it. i didnt found the time yet

digitalkaoz avatar Jan 15 '18 15:01 digitalkaoz