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

Ignoring style tags or link tags on inline

Open jpsc opened this issue 10 years ago • 7 comments
trafficstars

I would be nice to have the possibility to bypass any style or link on the inline.

Something like this:

<!-- external styles -->
<link rel="stylesheet" data-ignore="ignore"  href="style.css" />

<!-- embedded styles -->
<style data-ignore="ignore"></style>

Idea from here.

What do you think ?

jpsc avatar Jan 07 '15 12:01 jpsc

Would any of the juice options achieve what you want?

jonkemp avatar Jan 07 '15 14:01 jonkemp

I don't think so. With those options you can add all or none. My idea is to just keep specific ones from going inline. As well all know there are styles that don't need / can't be inlined on html newsletters so could be nice to have that option.

The preserve media queries option comes close to that, at least with the final output, but can't put those styles in a media query because they won't be read by some email clients.

jpsc avatar Jan 07 '15 14:01 jpsc

Thinking about this I'm not sure how it's possible. Basically all this module does is make the juice(2) module work with gulp. So it's really just a wrapper around that module. So if juice doesn't support it, then I don't see how it will work.

jonkemp avatar Jan 07 '15 14:01 jonkemp

Yes. I've seen that now. I'll go directly to juice :pray:

jpsc avatar Jan 07 '15 14:01 jpsc

This plugin uses a new module called inline-css, which is it's own version of juice. So the feature request needs to be made here or in the inline-css repo.

jonkemp avatar Feb 08 '15 05:02 jonkemp

@kaiserkoenig I think you left this comment on the wrong issue. The templating issue is here #4.

jonkemp avatar Feb 09 '15 15:02 jonkemp

ups... monday morning

kaiserkoenig avatar Feb 09 '15 15:02 kaiserkoenig

No longer relevant

jpsc avatar May 15 '23 08:05 jpsc