image-webpack-loader icon indicating copy to clipboard operation
image-webpack-loader copied to clipboard

Added ability to use additional optimizers

Open scorgn opened this issue 6 years ago • 12 comments

To add the ability to use additional optimizers without editing the core loader, I have added the option additionalPlugins to the loader options. Using this, a user can define an additional imagemin plugin to use, along with it's options, and the loader will utilize that optimizer as well (as long as it is installed as a node module).

scorgn avatar Sep 05 '18 01:09 scorgn

sorry for the late review. Can you add a test where you add an additional optimizer?

tcoopman avatar Oct 17 '18 06:10 tcoopman

I think this is good. Yeah, tests are required. @tcoopman I guess you can add the tests in this PR. or else I will fork @ShawnCorrigan 's branch and will add tests and submit a follow-up PR for the tests

anikethsaha avatar Dec 08 '19 10:12 anikethsaha

A follow-up PR with tests would be ok.

tcoopman avatar Dec 09 '19 08:12 tcoopman

aah...I cant fork his repo and keeping my existing fork. And even if I am forking his repo, I guess he is not active in GitHub so it might not get merge there.

I guess you can merge this and I will add tests

anikethsaha avatar Dec 10 '19 16:12 anikethsaha

I am active enough, I will accept any PRs towards my repo. I just never had time to write tests for this.

scorgn avatar Dec 10 '19 17:12 scorgn

I am active enough, I will accept any PRs towards my repo. I just never had time to write tests for this.

Ohh...I saw your GH contribution graph and thought of that. Nevermind. Will submit a PR in your fork soon

anikethsaha avatar Dec 10 '19 17:12 anikethsaha

Sounds good! I'll keep an eye out for a PR. I am only contributing to private repos right now, but I do want to get back into open source development.

scorgn avatar Dec 10 '19 17:12 scorgn

Sounds good! I'll keep an eye out for a PR. I am only contributing to private repos right now, but I do want to get back into open source development.

Great to hear that 👍

anikethsaha avatar Dec 10 '19 17:12 anikethsaha

Can the conflicts be resolved?

tcoopman avatar Dec 12 '19 11:12 tcoopman

@ShawnCorrigan after rebasing , you need to update the schema.json as well to add this new configuration property.

anikethsaha avatar Dec 12 '19 13:12 anikethsaha

Okay I will get to this tonight after work

scorgn avatar Dec 13 '19 13:12 scorgn

Cc @ShawnCorrigan

anikethsaha avatar Jan 23 '20 11:01 anikethsaha