Hello,
I've been enjoying gulp-inline-css quite a bit for email development, but I run into a strange bug as of late. I have a class .innerContainer that isn't having it's styles inlined? Most of the other styles are inlining just fine. To make matters even stranger, if I have a <div> or <td> in the bottom half of the html file, the styles for .innerContainer will inline just fine.
I'm using the Nunjucks templating engine to build my files.
Here is my gulp task
gulp.task('inline', function() {
return gulp.src('./*.html')
.pipe(inlineCss({
removeStyleTags: false,
preserveMediaQueries: true,
applyTableAttributes: true,
applyWidthAttributes: false
}))
.pipe(gulp.dest('dist/'));
});
Thanks for your help.
Hello,
I've been enjoying gulp-inline-css quite a bit for email development, but I run into a strange bug as of late. I have a class
.innerContainerthat isn't having it's styles inlined? Most of the other styles are inlining just fine. To make matters even stranger, if I have a<div>or<td>in the bottom half of the html file, the styles for.innerContainerwill inline just fine.I'm using the Nunjucks templating engine to build my files.
Here is my gulp task
Thanks for your help.