Skip to content

Classes are being skipped in the document #53

Description

@harberg

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions