Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Should leave media queries alone #14

Open
mrbinky3000 opened this issue Jun 24, 2014 · 5 comments
Open

Should leave media queries alone #14

mrbinky3000 opened this issue Jun 24, 2014 · 5 comments

Comments

@mrbinky3000
Copy link

It would be nice if there was an option for this to ignore parsing styles located within in media queries. There is such a thing as responsive email :-) Granted, when this plugin was first written, there probably wasn't, but it's a thing now.

@kmiters
Copy link

kmiters commented Jul 4, 2014

Of course it is a nice option but right now you can put your media queries inside <style></style> tag and tell grunt not to inline this section. All other styles put in other file and they will be inlined perfectly.

@joshlewis
Copy link

Can you point to an example of where this is done, @kmiters ?

@kmiters
Copy link

kmiters commented Apr 29, 2015

I don't really remember how it worked (it was nearly year ago ;)) but I think that I put my media queries inside <style> tag and told grunt not to inline <style> (there was an option for this).

@joshlewis
Copy link

Looks like the issue is that my passed-in options are being completely ignored.

Edit: I think I figured out the problem. In the gruntfile, options should be a sibling of main, not a child of it.

@LL782
Copy link

LL782 commented Dec 1, 2015

This was an issue for me as well. I found preserveMediaQueries in the Juice options Does the trick! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants