Swaagie / minimize

Minimize HTML
MIT License
162 stars 18 forks source link

Add the ability to keep case of attributesnames #75

Closed manland closed 8 years ago

manland commented 8 years ago

Hi,

Thanks for your job on this project!

I use it to inline my html templates in an angular2 project. To do this I need to keep attributes names with camel case (because of ngIf, ngFor... and [propertyName]...).

After some research I have found the option lowerCaseAttributeNames in htmlparser2, so I have added an option.

If you want I change something just tell me :smiley:

@+++

Swaagie commented 8 years ago

Sorry was out on vacation a bit, will check this later today, looking good so far :) thanks

Swaagie commented 8 years ago

Added some comments, thanks for your work on this, would be nice if you could swap some logic around.

manland commented 8 years ago

Thanks for the review, I have do all modifications, tell me if something is always not good :sweat_smile:

Swaagie commented 8 years ago

Big thanks, merged and released as 1.8.0

manland commented 8 years ago

:+1: thanks !