-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable cmd line support for text min #26
Comments
The image compressor and minifier are quite similar in the tasks that they do. They both follow the same basic pattern. I find myself tackling this and the easiest thing is to copy and paste from Img's
Thoughts? |
Yeah the code is not currently factored very well. We have a lot of duplication. I agree that we should def consolidate if we can. The suggestions you suggest above all look really good to me. If we can get the text min working as a stand alone exe I can make a self bootstrapping script, PowerShell and if anyone wants MSBuild, to make it easier to use. |
So it turns out you've pulled in a change that wasn't in my original PR. I didn't realize that subsequent commits to a branch after a PR is made would be included if the PR is accepted. So this issue has been solved basically by a copy of the ImgCompressor's implementation, copy paste over to TextMinifier. It'll output via help switch the exact same params as ImgCompress, even though they're not used. |
Should we revert the change or leave it for now? |
Let's keep it. Should be all good and functional. I meant to include it as you've accepted it (copy/pasted from ImgCompress), with the intent to refactor later with a base class and interface, etc later.
|
Ok sounds good, thanks. |
I think we can close this, please re-open if we still need it. |
We should add cmd line similar to how we added support to call the image optimizer support being called from the command line in #22.
The text was updated successfully, but these errors were encountered: