jonkemp / gulp-inline-css

Inline linked css in an html file. Useful for emails.
MIT License
272 stars 29 forks source link

How can I remove html class attribute ? #27

Closed liyaodong closed 8 years ago

liyaodong commented 8 years ago

Source

<div class="header"></div>
.header { color: #fff };

inline process

<div class="header" style="color: #fff;"></div>

why not clean all class attribute ? if mail page load the html, god know the class .header has some style rule ...

jonkemp commented 8 years ago

An option to do this was just added in the inline css module. So you should just be able to set the option in gulp and it will get passed through.

https://github.com/jonkemp/inline-css/pull/2

darklow commented 8 years ago

Thanks, good feature. Yet it is merged, but not documented yet

jonkemp commented 8 years ago

Pull requests accepted. :smiley: