gulp-inline-css icon indicating copy to clipboard operation
gulp-inline-css copied to clipboard

Unfound tags to be added in the style tag from the header

Open adyz opened this issue 9 years ago • 1 comments

Hi Guys,

I'm planning to use this module to create an email and it works great, but with one problem.

If I have a tag that is not found in the HTML, eg: #outlook a {padding:0;} it's not added the the header style tag. It's just adding media query tags.

In there something I'm going wrong or this is the best I can get from gulp-inline-css?

Thank you, Adrian

adyz avatar Mar 02 '15 10:03 adyz

No, that's how it's designed to work. You could use options.removeStyleTags: false to preserve the style tag in the document. Maybe that would do what you are wanting. I think that is your only option.

jonkemp avatar Mar 02 '15 14:03 jonkemp